aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJackie Liu <[email protected]>2021-09-22 10:51:22 +0800
committerSteven Rostedt (VMware) <[email protected]>2021-10-07 09:41:47 -0400
commit424b650f35c77defbb3cbd6e5221d3697af42250 (patch)
treea522ac8c619f0bf3e51d69fd81df1ec995ab2ae5 /scripts/gdb/linux/utils.py
parent5816b3e6577eaa676ceb00a848f0fd65fe2adc29 (diff)
tracing: Fix missing osnoise tracer on max_latency
The compiler warns when the data are actually unused: kernel/trace/trace.c:1712:13: error: ‘trace_create_maxlat_file’ defined but not used [-Werror=unused-function] 1712 | static void trace_create_maxlat_file(struct trace_array *tr, | ^~~~~~~~~~~~~~~~~~~~~~~~ [Why] CONFIG_HWLAT_TRACER=n, CONFIG_TRACER_MAX_TRACE=n, CONFIG_OSNOISE_TRACER=y gcc report warns. [How] Now trace_create_maxlat_file will only take effect when CONFIG_HWLAT_TRACER=y or CONFIG_TRACER_MAX_TRACE=y. In fact, after adding osnoise trace, it also needs to take effect. Link: https://lore.kernel.org/all/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Fixes: bce29ac9ce0b ("trace: Add osnoise tracer") Cc: Daniel Bristot de Oliveira <[email protected]> Suggested-by: Steven Rostedt <[email protected]> Reviewed-by: Daniel Bristot de Oliveira <[email protected]> Tested-by: Randy Dunlap <[email protected]> # build-tested Signed-off-by: Jackie Liu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions