Files
android_kernel_fxtec_sm6115/include/uapi/linux
Song Liu e108fd60ce UPSTREAM: bpf: Introduce BPF_F_PRESERVE_ELEMS for perf event array
Currently, perf event in perf event array is removed from the array when
the map fd used to add the event is closed. This behavior makes it
difficult to the share perf events with perf event array.

Introduce perf event map that keeps the perf event open with a new flag
BPF_F_PRESERVE_ELEMS. With this flag set, perf events in the array are not
removed when the original map fd is closed. Instead, the perf event will
stay in the map until 1) it is explicitly removed from the array; or 2)
the array is freed.

Change-Id: I7c0aaa5ae7431439acaaaaf7b5b689834b2313db
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200930224927.1936644-2-songliubraving@fb.com
2025-08-28 03:28:11 +03:00
..
2020-06-07 13:17:54 +02:00
2020-04-24 15:19:09 -07:00
2024-04-16 03:13:08 +03:00
2020-06-17 06:00:22 +05:30
2021-06-28 10:09:35 +05:30
2020-07-07 12:09:16 +05:30
2020-03-26 10:50:04 +05:30
2020-01-09 15:11:34 -08:00
2023-09-23 10:48:08 +02:00