diff options
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r-- | kernel/perf_event.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index abe1ef47496..20df8aba8da 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -3954,12 +3954,12 @@ out: | |||
3954 | void __perf_sw_event(u32 event_id, u64 nr, int nmi, | 3954 | void __perf_sw_event(u32 event_id, u64 nr, int nmi, |
3955 | struct pt_regs *regs, u64 addr) | 3955 | struct pt_regs *regs, u64 addr) |
3956 | { | 3956 | { |
3957 | struct perf_sample_data data = { | 3957 | struct perf_sample_data data; |
3958 | .addr = addr, | ||
3959 | }; | ||
3960 | 3958 | ||
3961 | do_perf_sw_event(PERF_TYPE_SOFTWARE, event_id, nr, nmi, | 3959 | data.addr = addr; |
3962 | &data, regs); | 3960 | data.raw = NULL; |
3961 | |||
3962 | do_perf_sw_event(PERF_TYPE_SOFTWARE, event_id, nr, nmi, &data, regs); | ||
3963 | } | 3963 | } |
3964 | 3964 | ||
3965 | static void perf_swevent_read(struct perf_event *event) | 3965 | static void perf_swevent_read(struct perf_event *event) |