-
Notifications
You must be signed in to change notification settings - Fork 349
Log and document "hidden" feature to turn off adaptive trace at run-time #5154
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
Log and document "hidden" feature to turn off adaptive trace at run-time #5154
Conversation
The fewer macros, the better. Commit 1758279 ("perf: make trace part of perf counting configurable") provided no specific rationale for using macros. It did not explain why it passed some ignored arguments either - renamed accordingly. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Group two #ifdef into one. Top of block variables do not require C99. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Also clarify related Kconfig help strings. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
|
The Ethernet error The new message |
|
@kkarask could you find someone to help with this? Demoting to draft until QB can run. UPDATE: https://quickbuild.igk.intel.com/build/8262346 is now green, dunno what happened. Actual tests still haven't run. |
…ents This makes much clearer why this function is not called when the burst is short enough. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
f47a512 to
1c963e5
Compare
|
|
||
| DECLARE_TR_CTX(sa_tr, SOF_UUID(sa_uuid), LOG_LEVEL_INFO); | ||
|
|
||
| #define perf_sa_trace(pcd, sa) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a macro preserve __func__ and __LINE__. Can you check the output is correct as before with this change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered this. It is still possible to use macros, I did not remove that feature. I even made that clearer, see the very first hunk in perf_cnt.h. However I replaced these two specific macros because each is local to a single .c file and invoked only once in that .c file. So in these two particular cases __LINE__ would be completely useless because git grep is more than enough for these two.
BTW we can't use __func__ because it's not compatible with the dictionary. __func__ is not a static string that can be concatenated and only 32bits parameters are supported.
|
@marc-hb CI tests already passed. |
+ other cleanups, comments and clarifications, see commit messages.
Zero functional change.