diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_counter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 84a39081344c..4af98f943d3b 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -1831,6 +1831,9 @@ static void perf_counter_output(struct perf_counter *counter, | |||
1831 | header.type = PERF_EVENT_COUNTER_OVERFLOW; | 1831 | header.type = PERF_EVENT_COUNTER_OVERFLOW; |
1832 | header.size = sizeof(header); | 1832 | header.size = sizeof(header); |
1833 | 1833 | ||
1834 | header.misc = user_mode(regs) ? | ||
1835 | PERF_EVENT_MISC_USER : PERF_EVENT_MISC_KERNEL; | ||
1836 | |||
1834 | if (record_type & PERF_RECORD_IP) { | 1837 | if (record_type & PERF_RECORD_IP) { |
1835 | ip = instruction_pointer(regs); | 1838 | ip = instruction_pointer(regs); |
1836 | header.type |= __PERF_EVENT_IP; | 1839 | header.type |= __PERF_EVENT_IP; |