]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Move code in intel_pt_synth_events() to simplify attr setting
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 26 May 2017 08:17:33 +0000 (11:17 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 30 Jun 2017 14:44:36 +0000 (11:44 -0300)
commit5853bcaf393473d558e73cd1fb3b9cbdfb7a961d
tree32ac2de0a16631dbc2d8a28e0fb9476f1ec54d4f
parent8d2af1b5aff353c82661430c185dc8c4f84bf11a
perf intel-pt: Move code in intel_pt_synth_events() to simplify attr setting

intel_pt_synth_events() uses the same attr structure to create each event.
Move the code around a bit to simplify that.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1495786658-18063-33-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c