perf: Use tracked event info for output
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 19 May 2016 22:03:28 +0000 (18:03 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 15:48:36 +0000 (11:48 -0400)
commit4a95d727442c92af578b876a8e929f59052540a6
tree7b3eff54eb307a33498292d1e62369d56a96b72b
parentdf8800880c03c7bc18980ba72e845b3b9b343a35
perf: Use tracked event info for output

The event selector knows all about an event: its name, flags, raw code,
etc.  We can use that when we're outputting the event later on.  We had
been getting some info from the kernel and copying into sel, but that's
actually lies - AFAIK, those values are all just 0.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/profile/perf/perf_core.c
tools/profile/perf/perf_core.h