From: Arnaldo Carvalho de Melo Date: Tue, 15 Mar 2011 18:44:01 +0000 (-0300) Subject: perf session: Pass evsel in event_ops->sample() X-Git-Tag: v2.6.39-rc1~61^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e69c210822c4035708a6111567c96364ca244d5;p=pandora-kernel.git perf session: Pass evsel in event_ops->sample() Resolving the sample->id to an evsel since the most advanced tools, report and annotate, and the others will too when they evolve to properly support multi-event perf.data files. Good also because it does an extra validation, checking that the ID is valid when present. When that is not the case, the overhead is just a branch + function call (perf_evlist__id2evsel). Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed