@@ -107,6 +107,7 @@ type flags struct {
107107 LocalStore FlagsLocalStore `embed:"" prefix:"local-store-"`
108108 RemoteStore FlagsRemoteStore `embed:"" prefix:"remote-store-"`
109109 Debuginfo FlagsDebuginfo `embed:"" prefix:"debuginfo-"`
110+ Symbolizer FlagsSymbolizer `embed:"" prefix:"symbolizer-"`
110111 DWARFUnwinding FlagsDWARFUnwinding `embed:"" prefix:"dwarf-unwinding-"`
111112
112113 Hidden FlagsHidden `embed:"" prefix:"" hidden:""`
@@ -158,6 +159,11 @@ type FlagsDebuginfo struct {
158159 UploadTimeoutDuration time.Duration `default:"2m" help:"The timeout duration to cancel upload requests."`
159160}
160161
162+ // FlagsSymbolizer contains flags to configure symbolization.
163+ type FlagsSymbolizer struct {
164+ JITDisable bool `kong:"help='Disable JIT symbolization.'"`
165+ }
166+
161167// FlagsDWARFUnwinding contains flags to configure DWARF unwinding.
162168type FlagsDWARFUnwinding struct {
163169 Disable bool `kong:"help='Do not unwind using .eh_frame information.'"`
@@ -473,6 +479,7 @@ func run(logger log.Logger, reg *prometheus.Registry, flags flags) error {
473479 perf .NewCache (logger ),
474480 ksym .NewKsymCache (logger , reg ),
475481 vdsoCache ,
482+ flags .Symbolizer .JITDisable ,
476483 ),
477484 process .NewMappingFileCache (logger ),
478485 objectfile .NewCache (20 , flags .Profiling .Duration ),
0 commit comments