Commit [65a36b]  Maximize  Restore  History

handle clash with include/linux/perf_event.h, add C++ support

In case include/perfmon/perf_event.h is included in a module
which also includes the official perf_event.h kernel header file
we need to ensure there is some sort of mutual exclusion.

Always include <linux/perf_event.h> first. Otherwise, we
cannot solve the variable namespace clashes.

Also add C++ support to perf_event.h

Signed-off-by: Stephane Eranian <>

Stephane Eranian Stephane Eranian 2011-03-01

changed include/perfmon/perf_event.h
include/perfmon/perf_event.h Diff Switch to side-by-side view