Commit 2b26f0a
perf: Support only inheriting events if cloned with CLONE_THREAD
Adds bit perf_event_attr::inherit_thread, to restricting inheriting
events only if the child was cloned with CLONE_THREAD.
This option supports the case where an event is supposed to be
process-wide only (including subthreads), but should not propagate
beyond the current process's shared environment.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/lkml/YBvj6eJR%2FDY2TsEB@hirez.programming.kicks-ass.net/1 parent 47f661e commit 2b26f0a
File tree
4 files changed
+20
-11
lines changed- include
- linux
- uapi/linux
- kernel
- events
4 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
961 | | - | |
| 961 | + | |
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| |||
1449 | 1449 | | |
1450 | 1450 | | |
1451 | 1451 | | |
1452 | | - | |
| 1452 | + | |
| 1453 | + | |
1453 | 1454 | | |
1454 | 1455 | | |
1455 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
| 393 | + | |
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11653 | 11653 | | |
11654 | 11654 | | |
11655 | 11655 | | |
| 11656 | + | |
| 11657 | + | |
| 11658 | + | |
11656 | 11659 | | |
11657 | 11660 | | |
11658 | 11661 | | |
| |||
12873 | 12876 | | |
12874 | 12877 | | |
12875 | 12878 | | |
12876 | | - | |
| 12879 | + | |
12877 | 12880 | | |
12878 | 12881 | | |
12879 | 12882 | | |
12880 | 12883 | | |
12881 | | - | |
| 12884 | + | |
| 12885 | + | |
12882 | 12886 | | |
12883 | 12887 | | |
12884 | 12888 | | |
| |||
12910 | 12914 | | |
12911 | 12915 | | |
12912 | 12916 | | |
12913 | | - | |
| 12917 | + | |
| 12918 | + | |
12914 | 12919 | | |
12915 | 12920 | | |
12916 | 12921 | | |
| |||
12950 | 12955 | | |
12951 | 12956 | | |
12952 | 12957 | | |
12953 | | - | |
| 12958 | + | |
| 12959 | + | |
12954 | 12960 | | |
12955 | 12961 | | |
12956 | 12962 | | |
| |||
12966 | 12972 | | |
12967 | 12973 | | |
12968 | 12974 | | |
12969 | | - | |
| 12975 | + | |
| 12976 | + | |
12970 | 12977 | | |
12971 | 12978 | | |
12972 | 12979 | | |
| |||
13008 | 13015 | | |
13009 | 13016 | | |
13010 | 13017 | | |
13011 | | - | |
| 13018 | + | |
13012 | 13019 | | |
13013 | 13020 | | |
13014 | 13021 | | |
| |||
13017 | 13024 | | |
13018 | 13025 | | |
13019 | 13026 | | |
13020 | | - | |
| 13027 | + | |
13021 | 13028 | | |
13022 | 13029 | | |
13023 | 13030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2078 | 2078 | | |
2079 | 2079 | | |
2080 | 2080 | | |
2081 | | - | |
| 2081 | + | |
2082 | 2082 | | |
2083 | 2083 | | |
2084 | 2084 | | |
| |||
0 commit comments