perf: Enable user and kernel event sharing

The kernel and the user-space are now able to share the similar events.
The kernel and user's attr->type (hardware/raw) and attr->config should
be same for them to share the same counter.

Change-Id: I4a4b35bde6beaf8f2aef74e683a9804e31807013
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
3 files changed