Commit Graph

4 Commits

Author SHA1 Message Date
Sasha Goldshtein
b41b1cd3b8 funcslower: Make -p switch respect all the process' threads
The -p switch used to set the `set_ftrace_pid` file, which is really
a thread id from the user's perspective. As a result, only the main
thread would be traced. Fix by enumerating the thread ids from /proc/
$pid/task and putting them all in `set_ftrace_pid` when asked.

Signed-off-by: Sasha Goldshtein <goldshtn@gmail.com>
2017-09-04 09:36:38 -04:00
Brendan Gregg
f1a0a886f9 free up -c for something else 2014-08-02 13:42:57 -07:00
Brendan Gregg
ca2708ca6a include USAGE messages in examples 2014-07-31 15:46:18 -07:00
Brendan Gregg
057442c042 funcslower 2014-07-30 17:35:28 -07:00