From: Arnaldo Carvalho de Melo Date: Mon, 17 Jan 2011 20:28:13 +0000 (-0200) Subject: perf tools: Fix tracepoint id to string perf.data header table X-Git-Tag: v2.6.38-rc1~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7f4e3f7b966ac09c8f98dbc5024813a1685775;p=pandora-kernel.git 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 Cc: Franck Bui-Huu Cc: Frederic Weisbecker Cc: Han Pingtian Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: <20110117202801.GG2085@ghostprotocols.net> Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed