perf: Track PIDs for kernel samples (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 18:19:14 +0000 (14:19 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jun 2016 16:17:55 +0000 (12:17 -0400)
commitd919318cbac7dc6ba99655238965f2d182d69296
treebaa6a5db6720c409d935d16b467b9a68b7c61a23
parenta480df78bcad87c897e408eca4315bede7041e83
perf: Track PIDs for kernel samples (XCC)

When the kernel is running on behalf of the user, we'd like to attribute
those samples to that process.  We now report that info.

Incidentally, I dabbled with reporting the vcoreid for user samples as the
TID.  That won't work, since TID is more of a PID on Linux.

Reinstall your kernel headers.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ros/profiler_records.h
kern/src/profiler.c
tools/profile/perf/perfconv.c