From: Franck Bui-Huu Date: Tue, 30 Nov 2010 11:50:14 +0000 (+0100) Subject: perf header: Don't assume there's no attr info if no sample ids is provided X-Git-Tag: v2.6.37-rc6~36^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60e677373be9c0bf7c9a22937601d5a40e51c042;p=pandora-kernel.git perf header: Don't assume there's no attr info if no sample ids is provided This primarily fixes perf-report, which didn't report the correct type of event if perf-record was called to record one event different from 'cycles': $ perf record -e instructions true [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.007 MB perf.data (~295 samples) ] $ perf report | head -n1 # Events: 7 cycles LPU-Reference: Signed-off-by: Franck Bui-Huu --- Reading git-diff-tree failed