From: Stephane Eranian Date: Mon, 17 Nov 2014 19:06:56 +0000 (+0100) Subject: perf/x86: Add 'index' param to get_event_constraint() callback X-Git-Tag: omap-for-v4.1/fixes-rc1~156^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79cba822443a168c8f7f5b853d9c7225a6d5415e;p=pandora-kernel.git perf/x86: Add 'index' param to get_event_constraint() callback This patch adds an index parameter to the get_event_constraint() x86_pmu callback. It is expected to represent the index of the event in the cpuc->event_list[] array. When the callback is used for fake_cpuc (evnet validation), then the index must be -1. The motivation for passing the index is to use it to index into another cpuc array. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra (Intel) Cc: bp@alien8.de Cc: jolsa@redhat.com Cc: kan.liang@intel.com Cc: maria.n.dimakopoulou@gmail.com Link: http://lkml.kernel.org/r/1416251225-17721-5-git-send-email-eranian@google.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed