perf: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children
authorMarco Elver <elver@google.com>
Thu, 8 Apr 2021 10:35:57 +0000 (12:35 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 16 Apr 2021 14:32:40 +0000 (16:32 +0200)
commit47f661eca0700928012e11c57ea0328f5ccfc3b9
treedc604ab69d6374730df58bda1186481e41500091
parentef54c1a476aef7eef26fe13ea10dc090952c00f8
perf: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children

As with other ioctls (such as PERF_EVENT_IOC_{ENABLE,DISABLE}), fix up
handling of PERF_EVENT_IOC_MODIFY_ATTRIBUTES to also apply to children.

Suggested-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Link: https://lkml.kernel.org/r/20210408103605.1676875-3-elver@google.com
kernel/events/core.c