Commit 22deea6
committed
fix: Get bpf prog func name from insns
It'll get wrong func name of bpf prog when there are multiple bpf progs
in one BTF.
Instead, get the very first symbol name from bpf prog's instructions as
its entry func name.
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>1 parent d932b39 commit 22deea6
1 file changed
+6
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 52 | + | |
65 | 53 | | |
66 | | - | |
| 54 | + | |
67 | 55 | | |
68 | 56 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
| |||
0 commit comments