aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2019-11-11 23:03:25 +0100
committerThomas Gleixner <[email protected]>2019-11-16 11:24:04 +0100
commit4804e382c117ce213cd5c43512cf4b1d71bb2650 (patch)
treea655461687013c631b6799b65d57943ea7840981 /tools/perf/util/trace-event-scripting.c
parentea5f1cd7ab494f65f50f338299eabb40ad6a1767 (diff)
x86/ioperm: Share I/O bitmap if identical
The I/O bitmap is duplicated on fork. That's wasting memory and slows down fork. There is no point to do so. As long as the bitmap is not modified it can be shared between threads and processes. Add a refcount and just share it on fork. If a task modifies the bitmap then it has to do the duplication if and only if it is shared. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Andy Lutomirski <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions