Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sched_note: add function auto-tracing #8988

Merged
merged 1 commit into from Apr 10, 2023

Conversation

Gary-Hobson
Copy link
Contributor

Summary

You can automatically trace the function instrumentation without adding tracepoint manually.
This is similar to the Function Trace effect of the linux kernel

Impact

Testing

Add CFLAGS += -finstrument-functions to the makefile to track the required modules.
The following compilation option can exclude files that do not want to be tracked in this module
CFLAGS += -finstrument-functions-exclude-file-list=xxx
The following compilation option can exclude functions that do not want to be tracked in this module
CFLAGS += -finstrument-functions-exclude-function-list=xxx

After enabling this option, you can automatically trace the function instrumentation without adding tracepoint manually.
This is similar to the Function Trace effect of the linux kernel

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
@acassis acassis merged commit b3e1004 into apache:master Apr 10, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.2.0 Jun 13, 2023
@jerpelea jerpelea moved this from To-Add to In Progress in Release Notes - 12.2.0 Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants