perf: Use a user_data blob for perf_event (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 May 2016 18:37:26 +0000 (14:37 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 15:48:37 +0000 (11:48 -0400)
commit5e0015bd60a9791f9782b9170f2c4a8ceb079c76
tree2cfb3323f1d2b4aa118ebc554193cd9a7fac4e09
parentf3acbef630c671de3d13a684bf83d9cd028219d9
perf: Use a user_data blob for perf_event (XCC)

Previously, the kernel had to emit something that perfconv could interpret
as-is to build a perf_event stream.  That was limiting.  Now, the user can
pass a blob with a perf_event that the kernel will send whenever the event
fires.  Basically user_data becomes the info field in any perfmon sample.

The user can do whatever they want with this - it can even be the original
event code if they choose.

Right now, perfconv doesn't know how to handle this new format.  That'll be
sorted out next patch.

Reinstall your kernel headers.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/devarch.c
kern/arch/x86/perfmon.c
kern/arch/x86/ros/perfmon.h
tools/profile/perf/perf.c
tools/profile/perf/perf_core.c
tools/profile/perf/perf_core.h