]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpftool: Display ref_ctr_offset for uprobe link info
authorJiri Olsa <jolsa@kernel.org>
Fri, 9 May 2025 15:35:39 +0000 (17:35 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 9 May 2025 20:01:08 +0000 (13:01 -0700)
commit97596edfec0125db3d6520193cd10be69e24010c
treeeb564db22f08f6cdff466387fb47d0bf0e3ea525
parentd57293db64f57ae689bd840bb7db421dd9816faf
bpftool: Display ref_ctr_offset for uprobe link info

Adding support to display ref_ctr_offset in link output, like:

  # bpftool link
  ...
  42: perf_event  prog 174
          uprobe /proc/self/exe+0x102f13  cookie 3735928559  ref_ctr_offset 0x303a3fa
          bpf_cookie 3735928559
          pids test_progs(1820)

  # bpftool link -j | jq
  [
    ...
    {
      "id": 42,
       ...
      "ref_ctr_offset": 50500538,
    }
  ]

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250509153539.779599-4-jolsa@kernel.org
tools/bpf/bpftool/link.c