Skip to content

Commit 63b3a9c

Browse files
laoarKernel Patches Daemon
authored and
Kernel Patches Daemon
committed
bpftool: Add support for cgroup_task
we need to make corresponding changes to the bpftool to support cgroup_task iter. The result: $ bpftool link show 3: iter prog 15 target_name cgroup_task cgroup_id 7427 order self_only Signed-off-by: Yafang Shao <[email protected]>
1 parent 1d8b873 commit 63b3a9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/bpf/bpftool/link.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ static bool is_iter_map_target(const char *target_name)
158158

159159
static bool is_iter_cgroup_target(const char *target_name)
160160
{
161-
return strcmp(target_name, "cgroup") == 0;
161+
return strcmp(target_name, "cgroup") == 0 ||
162+
strcmp(target_name, "cgroup_task") == 0;
162163
}
163164

164165
static const char *cgroup_order_string(__u32 order)

0 commit comments

Comments
 (0)