You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let the user decide whether to use DebugInfo to determine uprobe
location, or use the Symbol Table.
The new symbol_source config takes the following two values:
- dwarf: uses the DebugInfo, which yield more accurate stack traces.
However, if the DebugInfo was rewritten by a post-linkage
optimisation tool (like BOLT or AutoFDO), we might get
wrong addresses for the probe location.
- symbol_table: uses the target's Symbol Table, which won't suffer
from improperly rewritten DebugInfo.
This will closebpftrace#3493.
Copy file name to clipboardExpand all lines: man/adoc/bpftrace.adoc
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3724,6 +3724,20 @@ Default: 1
3724
3724
3725
3725
Controls whether maps are printed on exit. Set to `0` in order to change the default behavior and not automatically print maps at program exit.
3726
3726
3727
+
=== symbol_source
3728
+
3729
+
Default: `dwarf` if `bpftrace` is compiled with LLDB, `symbol_table` otherwise
3730
+
3731
+
Choose how bpftrace will resolve all `uprobe` symbol locations.
3732
+
3733
+
Available options:
3734
+
3735
+
- `dwarf` - locate uprobes using DebugInfo, which yields more accurate stack traces (`ustack`). Fall back to the Symbol Table if it can't locate the probe using DebugInfo.
3736
+
- `symbol_table` - don't use DebugInfo and rely on the ELF Symbol Table instead.
3737
+
3738
+
If the DebugInfo was rewritten by a post-linkage optimisation tool (like BOLT or AutoFDO), it might yield an incorrect address for a probe location.
3739
+
This config can force using the Symbol Table, for when the DebugInfo returns invalid addresses.
3740
+
3727
3741
== Environment Variables
3728
3742
3729
3743
These are not available as part of the standard set of <<Config Variables>> and can only be set as environment variables.
0 commit comments