aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/string.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-07-20 11:32:05 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-07-20 15:16:25 -0300
commit082ab9a18e532864d1ceecfb50221df62b1d5a92 (patch)
tree5ff262d2099de106864d771940a4debdb1fc8a01 /tools/lib/string.c
parentperf trace: Introduce filter_loop_pids() (diff)
downloadlinux-dev-082ab9a18e532864d1ceecfb50221df62b1d5a92.tar.xz
linux-dev-082ab9a18e532864d1ceecfb50221df62b1d5a92.zip
perf trace: Filter out 'sshd' in the tracer ancestry in syswide tracing
Avoiding a loop, so now its quite convenient to ssh to a machine and then simply do: # perf trace To trace all syscalls without causing a loop. This was possible using --filter-pids, i.e. once you noticed the loop, get the sshd pid and add it to --filter-pids, restarting the 'perf trace'. Now to figure out how to do that in a X terminal, the other common scenario, which is way more involved, as there are multiple processes communicating to process terminal activity... Using --filter-pids + '-e \!syscall,names,you,dont,need' may be a good approximation when having to do syswide tracing on your workstation. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-68rjeao9wnpylla41htk7xps@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/string.c')
0 files changed, 0 insertions, 0 deletions