perf trace: Introduce filter_loop_pids()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Jul 2017 14:17:51 +0000 (11:17 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Jul 2017 14:17:51 +0000 (11:17 -0300)
commitdd1a50377c92321f78fa4d0601bb4d88d88670ab
treee72472617baf72d5f6d9dd147e51a104247737f7
parent15bed2742a8d60210b958963ca1091d3cfc4f332
perf trace: Introduce filter_loop_pids()

No change in functionality, just to make clearer that what we want when
filtering the tracer pid in a system wide tracing session is to avoid a
feedback loop.

This also paves the way for a more interesting loop avoidance algorithm,
one that tries to figure out if we are in a ssh session, xterm, etc.

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-5fcttc5kdjkcyp9404ezkuy9@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c