1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ko/linux/strace.md
코드싸이 16f2c3ed79
shnsplit: fix typo, systemctl: update Korean translation, linux/s*: add Korean translation (#14715)
* linux/s*: add Korean translation

* systemctl: update Korean translation

* Update pages.ko/linux/sqfscat.md

Co-authored-by: Chooooo <contact@choo.ooo>

* Update pages.ko/linux/shar.md

Co-authored-by: Chooooo <contact@choo.ooo>

* Update pages.ko/linux/sqfstar.md

Co-authored-by: Chooooo <contact@choo.ooo>

* shnsplit: fix typo

* semanage: update Korean translation

---------

Co-authored-by: Chooooo <contact@choo.ooo>
2024-11-11 15:05:30 +09:00

956 B

strace

시스템 호출을 추적하는 문제 해결 도구. 더 많은 정보: https://manned.org/strace.

  • 특정 [p]프로세스를 PID로 추적 시작:

strace -p {{pid}}

  • [p]프로세스를 추적하고 시스템 호출로 출력을 필터링:

strace -p {{pid}} -e {{system_call,system_call2,...}}

  • 각 시스템 호출에 대해 시간, 호출 횟수, 오류 수를 계산하고 프로그램 종료 시 요약 보고:

strace -p {{pid}} -c

  • 각 시스템 호출에 소요된 [T]시간을 표시하고 출력할 문자열 최대 크기 지정:

strace -p {{pid}} -T -s {{32}}

  • 프로그램을 실행하여 추적 시작:

strace {{프로그램}}

  • 파일 작업을 추적 시작:

strace -e trace=file {{프로그램}}

  • 프로그램의 네트워크 작업과 모든 [f]포크된 및 자식 프로세스를 추적하고 [o]출력을 파일에 저장:

strace -f -e trace=network -o {{추적.txt}} {{프로그램}}