aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2009-08-11 16:22:00 -0300
committerIngo Molnar <[email protected]>2009-08-12 14:10:48 +0200
commit2a8083f063472f27c253545dd64e1a7bbbb1ab61 (patch)
tree78c20465589a102a4c28357c8207ea3366cfff69 /tools/perf/util/scripting-engines/trace-event-perl.c
parentf64ccccb8afa43abdd63fcbd230f818d6ea0883f (diff)
perf record: Fix .tid and .pid fill-in when synthesizing events
Noticed when trying to record events for a firefox thread. We were synthesizing both .tid and .pid with the pid passed via --pid. Fix it by reading /proc/PID/status and getting the tgid to use in .pid, .tid gets the specified "pid". Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Frédéric Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions