aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/perf_event.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index aede71245e9f..7961b27aceea 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -6099,6 +6099,11 @@ inherit_event(struct perf_event *parent_event,
6099 child_event->overflow_handler = parent_event->overflow_handler; 6099 child_event->overflow_handler = parent_event->overflow_handler;
6100 6100
6101 /* 6101 /*
6102 * Precalculate sample_data sizes
6103 */
6104 perf_event__header_size(child_event);
6105
6106 /*
6102 * Link it up in the child's context: 6107 * Link it up in the child's context:
6103 */ 6108 */
6104 raw_spin_lock_irqsave(&child_ctx->lock, flags); 6109 raw_spin_lock_irqsave(&child_ctx->lock, flags);