요약 : perf lock
프로필 pthread_mutex?perf lock 프로필 사용자 공간 뮤텍스가 있습니까?
세부 :
옵션 perf lock
있다 perf
도구.
You can analyze various lock behaviours and statistics with this perf lock command.
'perf lock record <command>' records lock events
between start and end <command>. And this command
produces the file "perf.data" which contains tracing
results of lock events.
'perf lock trace' shows raw lock events.
'perf lock report' reports statistical data.
을하지만 perf lock record
를 실행하려고 할 때 내가 말하는 오류 가지고 : 남자 페이지는 말한다 invalid or unsupported event: 'lock:lock_acquire'
합니다. 나는 보았다. 아마 내 커널이 CONFIG_LOCKDEP
또는 CONFIG_LOCK_STAT
으로 컴파일되지 않았기 때문에 오류가있는 것으로 보인다.
내 질문은 : perf lock
사용자 공간 잠금 (예 : pthread_mutex) 또는 커널 잠금과 관련된 이벤트를보고합니까? 나는 주로 사용자 공간에서 실행되는 프로파일 링 어플리케이션에 더 관심이 있습니다. 필자는 perf에서이 옵션이 재미 있다고 생각했지만, 새로운 커널을 컴파일 (또는 가져 오기)하지 않고는 실행할 수 없기 때문에 시도하기 전에 무엇을하는지 더 잘 이해하고 싶습니다.