iovisor / iovisor/bcc

When tracing shared library functions with funclatency, no function names were displayed

Open
#4,391 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
5d 13h
Merged PRs (30d)
3

Description

When tracing shared library functions with funclatency, no function names were displayed like:
Function = b'[unknown]'

**system:**
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

**application:**
perftest
https://github.com/linux-rdma/perftest
compiler flags:
CFLAGS = -g -Wall -D_GNU_SOURCE -O3 -ggdb3 -O2 -fno-omit-frame-pointer

**ibverbs lib:**
"ldd ib_send_lat"

libibverbs.so.1 => /lib/x86_64-linux-gnu/libibverbs.so.1 (0x00007f233e953000)

**command:**
sudo funclatency-bpfcc ibverbs:ibv_get*

Output:

Tracing 13 functions for "ibverbs:ibv_get*"... Hit Ctrl-C to end.
^C

Function = b'[unknown]' [783086]
nsecs : count distribution
0 -> 1 : 0 | |
2 -> 3 : 0 | |
4 -> 7 : 0 | |
8 -> 15 : 0 | |
16 -> 31 : 0 | |
32 -> 63 : 0 | |
64 -> 127 : 0 | |
128 -> 255 : 0 | |
256 -> 511 : 0 | |
512 -> 1023 : 0 | |
1024 -> 2047 : 1 |**************************************** |
2048 -> 4095 : 1 |**************************************** |

Function = b'[unknown]' [783086]
nsecs : count distribution
0 -> 1 : 0 | |
2 -> 3 : 0 | |
4 -> 7 : 0 | |
8 -> 15 : 0 | |
16 -> 31 : 0 | |
32 -> 63 : 0 | |
64 -> 127 : 0 | |
128 -> 255 : 0 | |
256 -> 511 : 0 | |
512 -> 1023 : 0 | |
1024 -> 2047 : 2 |****************************************|
2048 -> 4095 : 0 | |
4096 -> 8191 : 1 |******************** |

avg = 2472 nsecs, total: 12361 nsecs, count: 5

Detaching...

Expected Result:
The function names should not be unknown.
Function = b'[unknown]' -> Function = ibv_*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported command, sudo funclatency-bpfcc ibverbs:ibv_get*, against the listed Debian and perftest setup. Then inspect the funclatency-bpfcc entry point and its shared-library symbol handling. Done means traced ibverbs functions are reported by name instead of [unknown].

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
observability, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.