diff options
author | Hao Luo <haoluo@google.com> | 2022-08-30 02:18:28 +0300 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@linux.dev> | 2022-08-30 21:02:03 +0300 |
commit | 6f95de6d713130c953af0a40b13c1da519f91c4e (patch) | |
tree | 0c8914549edb1c9fb679347f335698901996fedd /.cocciconfig | |
parent | 2eb680401df62c035ff50a7faf1296565b030df7 (diff) | |
download | linux-6f95de6d713130c953af0a40b13c1da519f91c4e.tar.xz |
bpftool: Add support for querying cgroup_iter link
Support dumping info of a cgroup_iter link. This includes
showing the cgroup's id and the order for walking the cgroup
hierarchy. Example output is as follows:
> bpftool link show
1: iter prog 2 target_name bpf_map
2: iter prog 3 target_name bpf_prog
3: iter prog 12 target_name cgroup cgroup_id 72 order self_only
> bpftool -p link show
[{
"id": 1,
"type": "iter",
"prog_id": 2,
"target_name": "bpf_map"
},{
"id": 2,
"type": "iter",
"prog_id": 3,
"target_name": "bpf_prog"
},{
"id": 3,
"type": "iter",
"prog_id": 12,
"target_name": "cgroup",
"cgroup_id": 72,
"order": "self_only"
}
]
Signed-off-by: Hao Luo <haoluo@google.com>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220829231828.1016835-1-haoluo@google.com
Signed-off-by: Martin KaFai Lau <martin.lau@linux.dev>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions