As the new API bpf_perf_event_aux_pause has been added in the kernel
UAPI bpf.h.  Sync with tools UAPI bpf.h.

Signed-off-by: Leo Yan <[email protected]>
---
 tools/include/uapi/linux/bpf.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 4162afc6b5d0..678278c91ce2 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -5795,6 +5795,26 @@ union bpf_attr {
  *             0 on success.
  *
  *             **-ENOENT** if the bpf_local_storage cannot be found.
+ *
+ * long bpf_perf_event_aux_pause(struct bpf_map *map, u64 flags, u32 pause)
+ *     Description
+ *             Pause or resume an AUX area trace associated to the perf event.
+ *
+ *             The *flags* argument is specified as the key value for
+ *             retrieving event pointer from the passed *map*.
+ *
+ *             The *pause* argument controls AUX trace pause or resume.
+ *             Non-zero values (true) are to pause the AUX trace and the zero
+ *             value (false) is for re-enabling the AUX trace.
+ *     Return
+ *             0 on success.
+ *
+ *             **-ENOENT** if not found event in the events map.
+ *
+ *             **-E2BIG** if the event index passed in the *flags* parameter
+ *             is out-of-range of the map.
+ *
+ *             **-EINVAL** if the flags passed is an invalid value.
  */
 #define ___BPF_FUNC_MAPPER(FN, ctx...)                 \
        FN(unspec, 0, ##ctx)                            \
@@ -6009,6 +6029,7 @@ union bpf_attr {
        FN(user_ringbuf_drain, 209, ##ctx)              \
        FN(cgrp_storage_get, 210, ##ctx)                \
        FN(cgrp_storage_delete, 211, ##ctx)             \
+       FN(perf_event_aux_pause, 212, ##ctx)            \
        /* */
 
 /* backwards-compatibility macros for users of __BPF_FUNC_MAPPER that don't
-- 
2.34.1


Reply via email to