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)
commit4a9fd4e0effc94b9ec79250946a0054d4dd1a963
tree32ac2de0a16631dbc2d8a28e0fb9476f1ec54d4f
parentbbac88ed64436201d6b6f2b00177d58081d56707
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