Skip to content

Commit 80364d1

Browse files
Update kfuncs to kernel v7.2
Added pages for new kfuncs and fixed a number of small issues found in existing pages. Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
1 parent 75f2077 commit 80364d1

90 files changed

Lines changed: 2490 additions & 86 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.aspell.en.pws‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ bpf
33
BPF
44
eBPF
55
cBPF
6+
cid
7+
cids
68
bpftool
79
bpffs
810
bpftrace
@@ -268,6 +270,7 @@ vtime
268270
runnable
269271
runqueue
270272
dequeue
273+
dequeued
271274
Dequeue
272275
unregistration
273276
unregister

‎data/feature-versions.yaml‎

Lines changed: 107 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@
24042404
- name: bpf_strlen
24052405
version: v6.17
24062406
commit: e91370550f1fe6fa3b02e8bf9762e3dc0a02fcad
2407-
- name: bpf_strlen
2407+
- name: bpf_strnlen
24082408
version: v6.17
24092409
commit: e91370550f1fe6fa3b02e8bf9762e3dc0a02fcad
24102410
- name: bpf_strspn
@@ -2578,6 +2578,30 @@
25782578
- name: bpf_wq_set_callback
25792579
version: v7.0
25802580
commit: b97931a25a4bc74076ffb5c3d1a534c71ade4d55
2581+
- name: bpf_get_mem_cgroup
2582+
version: v7.0
2583+
commit: 5904db9891f80f84283648121e2d8c8a506296a8
2584+
- name: bpf_put_mem_cgroup
2585+
version: v7.0
2586+
commit: 5904db9891f80f84283648121e2d8c8a506296a8
2587+
- name: bpf_mem_cgroup_vm_events
2588+
version: v7.0
2589+
commit: 99430ab8b804c26b8a0dec93fcbfe75469f3edc7
2590+
- name: bpf_mem_cgroup_memory_events
2591+
version: v7.0
2592+
commit: 99430ab8b804c26b8a0dec93fcbfe75469f3edc7
2593+
- name: bpf_mem_cgroup_usage
2594+
version: v7.0
2595+
commit: 99430ab8b804c26b8a0dec93fcbfe75469f3edc7
2596+
- name: bpf_mem_cgroup_page_state
2597+
version: v7.0
2598+
commit: 99430ab8b804c26b8a0dec93fcbfe75469f3edc7
2599+
- name: bpf_mem_cgroup_flush_stats
2600+
version: v7.0
2601+
commit: 99430ab8b804c26b8a0dec93fcbfe75469f3edc7
2602+
- name: bpf_get_root_mem_cgroup
2603+
version: v7.0
2604+
commit: 5c7db3239c9fbe3c62cb0d89b64959ea23af2de9
25812605
- name: bbr_cwnd_event_tx_start
25822606
version: v7.1
25832607
commit: d1e59a46973719e458bec78d00dd767d7a7ba71f
@@ -2588,42 +2612,111 @@
25882612
version: v7.1
25892613
commit: d1e59a46973719e458bec78d00dd767d7a7ba71f
25902614
- name: bpf_io_uring_submit_sqes
2591-
version: 7.1
2615+
version: v7.1
25922616
commit: 890819248a8616558fe12e6c06c918ee1c3a2bc6
25932617
- name: bpf_io_uring_get_region
2594-
version: 7.1
2618+
version: v7.1
25952619
commit: 890819248a8616558fe12e6c06c918ee1c3a2bc6
25962620
- name: bpf_obj_drop
2597-
version: 7.1
2621+
version: v7.1
25982622
commit: d457072576a6a60ba853b1d815f123da57b48021
25992623
- name: bpf_obj_new
2600-
version: 7.1
2624+
version: v7.1
26012625
commit: d457072576a6a60ba853b1d815f123da57b48021
26022626
- name: bpf_percpu_obj_new
2603-
version: 7.1
2627+
version: v7.1
26042628
commit: d457072576a6a60ba853b1d815f123da57b48021
26052629
- name: bpf_percpu_obj_drop
2606-
version: 7.1
2630+
version: v7.1
26072631
commit: d457072576a6a60ba853b1d815f123da57b48021
26082632
- name: bpf_refcount_acquire
2609-
version: 7.1
2633+
version: v7.1
26102634
commit: d457072576a6a60ba853b1d815f123da57b48021
26112635
- name: bpf_list_push_back
2612-
version: 7.1
2636+
version: v7.1
26132637
commit: d457072576a6a60ba853b1d815f123da57b48021
26142638
- name: bpf_list_push_front
2615-
version: 7.1
2639+
version: v7.1
26162640
commit: d457072576a6a60ba853b1d815f123da57b48021
26172641
- name: bpf_rbtree_add
2618-
version: 7.1
2642+
version: v7.1
26192643
commit: d457072576a6a60ba853b1d815f123da57b48021
26202644
- name: scx_bpf_dsq_reenq
2621-
version: 7.1
2645+
version: v7.1
26222646
commit: 9c34c5074d1bc22072fc7f9c86b0028f7e273b2c
26232647
- name: scx_bpf_sub_dispatch
2624-
version: 7.1
2648+
version: v7.1
26252649
commit: 4f8b122848dbc353a193de0fa707bc40b5f067ff
26262650
- name: scx_bpf_dsq_move_to_local___v2
2627-
version: 7.1
2651+
version: v7.1
26282652
commit: 860683763ebf4662cb72a312279334e02718308f
2653+
- name: scx_bpf_tid_to_task
2654+
version: v7.2
2655+
commit: 41e3312861eafba171d9620150aaf2e99165d044
2656+
- name: scx_bpf_cid_to_cpu
2657+
version: v7.2
2658+
commit: e9b55af47edf6e60c9a47b5604c3e15c5162ec86
2659+
- name: scx_bpf_cpu_to_cid
2660+
version: v7.2
2661+
commit: e9b55af47edf6e60c9a47b5604c3e15c5162ec86
2662+
- name: scx_bpf_cid_topo
2663+
version: v7.2
2664+
commit: e9b55af47edf6e60c9a47b5604c3e15c5162ec86
2665+
- name: scx_bpf_cid_override
2666+
version: v7.2
2667+
commit: df7b5ae038d6f2707ec0f81c257a55b4062f77c7
2668+
- name: scx_bpf_cidperf_cap
2669+
version: v7.2
2670+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2671+
- name: scx_bpf_cidperf_cur
2672+
version: v7.2
2673+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2674+
- name: scx_bpf_cidperf_set
2675+
version: v7.2
2676+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2677+
- name: scx_bpf_cid_curr
2678+
version: v7.2
2679+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2680+
- name: scx_bpf_kick_cid
2681+
version: v7.2
2682+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2683+
- name: scx_bpf_task_cid
2684+
version: v7.2
2685+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2686+
- name: scx_bpf_nr_cids
2687+
version: v7.2
2688+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2689+
- name: scx_bpf_nr_online_cids
2690+
version: v7.2
2691+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2692+
- name: scx_bpf_this_cid
2693+
version: v7.2
2694+
commit: 5ba0a42423335f76d3e0513df42416c69dc6b742
2695+
- name: bpf_wakeup_sources_read_lock
2696+
version: v7.2
2697+
commit: 5ff44955447eb04f77161736ff5729c8c0994f7f
2698+
- name: bpf_wakeup_sources_read_unlock
2699+
version: v7.2
2700+
commit: 5ff44955447eb04f77161736ff5729c8c0994f7f
2701+
- name: bpf_wakeup_sources_get_head
2702+
version: v7.2
2703+
commit: 5ff44955447eb04f77161736ff5729c8c0994f7f
2704+
- name: bpf_list_del
2705+
version: v7.2
2706+
commit: 187baa10963ac9f1db5123fa2ab761ab34ea06b9
2707+
- name: bpf_list_add
2708+
version: v7.2
2709+
commit: a3493ca504f16877bf29a123f27835c3f841a05f
2710+
- name: bpf_list_empty
2711+
version: v7.2
2712+
commit: 745515d386eb5e6891d9f91a92ad15dace3a33ef
2713+
- name: bpf_list_is_first
2714+
version: v7.2
2715+
commit: 745515d386eb5e6891d9f91a92ad15dace3a33ef
2716+
- name: bpf_list_is_last
2717+
version: v7.2
2718+
commit: 745515d386eb5e6891d9f91a92ad15dace3a33ef
2719+
- name: bpf_real_data_inode
2720+
version: v7.2
2721+
commit: 3f8c65b06fafc3f779abda5f7b81707411d05d4c
26292722

‎data/kfuncs.yaml‎

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,48 @@ sets:
302302
- name: BPF_PROG_TYPE_PERF_EVENT
303303
- name: BPF_PROG_TYPE_RAW_TRACEPOINT
304304
- name: BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
305+
- name: bpf_list_del
306+
flags: [KF_ACQUIRE, KF_RET_NULL]
307+
except: # kfunc excluded by https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17751
308+
program_types: # For tracing programs https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17715
309+
- name: BPF_PROG_TYPE_KPROBE
310+
- name: BPF_PROG_TYPE_TRACEPOINT
311+
- name: BPF_PROG_TYPE_PERF_EVENT
312+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT
313+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
314+
- name: bpf_list_add
315+
flags: [KF_IMPLICIT_ARGS]
316+
except: # kfunc excluded by https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17751
317+
program_types: # For tracing programs https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17715
318+
- name: BPF_PROG_TYPE_KPROBE
319+
- name: BPF_PROG_TYPE_TRACEPOINT
320+
- name: BPF_PROG_TYPE_PERF_EVENT
321+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT
322+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
323+
- name: bpf_list_is_first
324+
except: # kfunc excluded by https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17751
325+
program_types: # For tracing programs https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17715
326+
- name: BPF_PROG_TYPE_KPROBE
327+
- name: BPF_PROG_TYPE_TRACEPOINT
328+
- name: BPF_PROG_TYPE_PERF_EVENT
329+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT
330+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
331+
- name: bpf_list_is_last
332+
except: # kfunc excluded by https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17751
333+
program_types: # For tracing programs https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17715
334+
- name: BPF_PROG_TYPE_KPROBE
335+
- name: BPF_PROG_TYPE_TRACEPOINT
336+
- name: BPF_PROG_TYPE_PERF_EVENT
337+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT
338+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
339+
- name: bpf_list_empty
340+
except: # kfunc excluded by https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17751
341+
program_types: # For tracing programs https://elixir.bootlin.com/linux/v7.2.2/source/kernel/bpf/verifier.c#L17715
342+
- name: BPF_PROG_TYPE_KPROBE
343+
- name: BPF_PROG_TYPE_TRACEPOINT
344+
- name: BPF_PROG_TYPE_PERF_EVENT
345+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT
346+
- name: BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
305347
program_types:
306348
- name: BPF_PROG_TYPE_TRACING
307349
- name: BPF_PROG_TYPE_TRACEPOINT
@@ -973,6 +1015,26 @@ sets:
9731015
- name: scx_bpf_reenqueue_local___v2
9741016
- name: __scx_bpf_select_cpu_and
9751017
flags: [KF_RCU]
1018+
- name: scx_bpf_tid_to_task
1019+
flags: [KF_RET_NULL, KF_RCU_PROTECTED]
1020+
- name: scx_bpf_kick_cid
1021+
flags: [KF_IMPLICIT_ARGS]
1022+
- name: scx_bpf_cidperf_cap
1023+
flags: [KF_IMPLICIT_ARGS]
1024+
- name: scx_bpf_cidperf_cur
1025+
flags: [KF_IMPLICIT_ARGS]
1026+
- name: scx_bpf_cidperf_set
1027+
flags: [KF_IMPLICIT_ARGS]
1028+
- name: scx_bpf_nr_cids
1029+
flags: [KF_IMPLICIT_ARGS]
1030+
- name: scx_bpf_nr_online_cids
1031+
flags: [KF_IMPLICIT_ARGS]
1032+
- name: scx_bpf_this_cid
1033+
flags: [KF_IMPLICIT_ARGS]
1034+
- name: scx_bpf_cid_curr
1035+
flags: [KF_IMPLICIT_ARGS, KF_RET_NULL, KF_RCU_PROTECTED]
1036+
- name: scx_bpf_task_cid
1037+
flags: [KF_RCU]
9761038
program_types:
9771039
- name: BPF_PROG_TYPE_STRUCT_OPS
9781040
- name: BPF_PROG_TYPE_SYSCALL
@@ -1003,6 +1065,8 @@ sets:
10031065
flags: [KF_SLEEPABLE, KF_TRUSTED_ARGS]
10041066
- name: bpf_remove_dentry_xattr
10051067
flags: [KF_SLEEPABLE, KF_TRUSTED_ARGS]
1068+
- name: bpf_real_data_inode
1069+
flags: [KF_SLEEPABLE, KF_RET_NULL]
10061070
program_types:
10071071
- name: BPF_PROG_TYPE_TRACING
10081072
- name: BPF_PROG_TYPE_TRACEPOINT
@@ -1115,3 +1179,50 @@ sets:
11151179
flags: [KF_RET_NULL]
11161180
program_types:
11171181
- name: BPF_PROG_TYPE_STRUCT_OPS
1182+
1183+
bpf_memcontrol_kfunc_set:
1184+
funcs:
1185+
- name: bpf_get_root_mem_cgroup
1186+
flags: [KF_ACQUIRE, KF_RET_NULL]
1187+
- name: bpf_get_mem_cgroup
1188+
flags: [KF_ACQUIRE, KF_RET_NULL, KF_RCU]
1189+
- name: bpf_put_mem_cgroup
1190+
flags: [KF_RELEASE]
1191+
- name: bpf_mem_cgroup_vm_events
1192+
- name: bpf_mem_cgroup_memory_events
1193+
- name: bpf_mem_cgroup_usage
1194+
- name: bpf_mem_cgroup_page_state
1195+
- name: bpf_mem_cgroup_flush_stats
1196+
flags: [KF_SLEEPABLE]
1197+
program_types:
1198+
- name: BPF_PROG_TYPE_UNSPEC
1199+
1200+
scx_kfunc_set_cid:
1201+
funcs:
1202+
- name: scx_bpf_cid_to_cpu
1203+
flags: [KF_IMPLICIT_ARGS]
1204+
- name: scx_bpf_cpu_to_cid
1205+
flags: [KF_IMPLICIT_ARGS]
1206+
- name: scx_bpf_cid_topo
1207+
flags: [KF_IMPLICIT_ARGS]
1208+
program_types:
1209+
- name: BPF_PROG_TYPE_STRUCT_OPS
1210+
- name: BPF_PROG_TYPE_TRACING
1211+
- name: BPF_PROG_TYPE_SYSCALL
1212+
1213+
scx_kfunc_set_init:
1214+
funcs:
1215+
- name: scx_bpf_cid_override
1216+
flags: [KF_SLEEPABLE, KF_IMPLICIT_ARGS]
1217+
program_types:
1218+
- name: BPF_PROG_TYPE_STRUCT_OPS
1219+
1220+
wakeup_source_kfunc_set:
1221+
funcs:
1222+
- name: bpf_wakeup_sources_read_lock
1223+
flags: [KF_ACQUIRE]
1224+
- name: bpf_wakeup_sources_read_unlock
1225+
flags: [KF_RELEASE]
1226+
- name: bpf_wakeup_sources_get_head
1227+
program_types:
1228+
- name: BPF_PROG_TYPE_SYSCALL

0 commit comments

Comments
 (0)