aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/perf_event.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index abe1ef47496c..20df8aba8da5 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -3954,12 +3954,12 @@ out:
3954void __perf_sw_event(u32 event_id, u64 nr, int nmi, 3954void __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
3965static void perf_swevent_read(struct perf_event *event) 3965static void perf_swevent_read(struct perf_event *event)