|
@@ -2070,6 +2070,11 @@ union bpf_attr {
|
|
* **CONFIG_SOCK_CGROUP_DATA** configuration option.
|
|
* **CONFIG_SOCK_CGROUP_DATA** configuration option.
|
|
* Return
|
|
* Return
|
|
* The id is returned or 0 in case the id could not be retrieved.
|
|
* The id is returned or 0 in case the id could not be retrieved.
|
|
|
|
+ *
|
|
|
|
+ * u64 bpf_get_current_cgroup_id(void)
|
|
|
|
+ * Return
|
|
|
|
+ * A 64-bit integer containing the current cgroup id based
|
|
|
|
+ * on the cgroup within which the current task is running.
|
|
*/
|
|
*/
|
|
#define __BPF_FUNC_MAPPER(FN) \
|
|
#define __BPF_FUNC_MAPPER(FN) \
|
|
FN(unspec), \
|
|
FN(unspec), \
|
|
@@ -2151,7 +2156,8 @@ union bpf_attr {
|
|
FN(lwt_seg6_action), \
|
|
FN(lwt_seg6_action), \
|
|
FN(rc_repeat), \
|
|
FN(rc_repeat), \
|
|
FN(rc_keydown), \
|
|
FN(rc_keydown), \
|
|
- FN(skb_cgroup_id),
|
|
|
|
|
|
+ FN(skb_cgroup_id), \
|
|
|
|
+ FN(get_current_cgroup_id),
|
|
|
|
|
|
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
|
|
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
|
|
* function eBPF program intends to call
|
|
* function eBPF program intends to call
|