diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2011-01-17 18:28:13 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-01-17 18:28:13 -0200 |
commit | ad7f4e3f7b966ac09c8f98dbc5024813a1685775 (patch) | |
tree | e5138e0e578670007744bd822ca40bf670ea995e /tools/perf/util/trace-event-scripting.c | |
parent | dd9a9ad5e1e94894433110ccbf492ed60d75ffcb (diff) |
perf tools: Fix tracepoint id to string perf.data header table
It was broken by f006d25 that passed just the event name, not the complete
sys:event that it expected to open the /sys/.../sys/sys:event/id file to get
the id.
Fix it by moving it to after parse_events in cmd_record, as at that point
we can just traverse the evsel_list and use evsel->attr.config +
event_name(evsel) instead of re-opening the /id file.
Reported-by: Franck Bui-Huu <[email protected]>
Cc: Franck Bui-Huu <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Han Pingtian <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions