-
Notifications
You must be signed in to change notification settings - Fork 349
profiling task: modify task profiling with performance counter macro #6407
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
Conversation
|
Please check compile errors. |
src/schedule/zephyr_ll.c
Outdated
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.
task_perf_... undefined?
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.
defined in #6353
I know, looks not good, the initial purpose want to put all perf_cnt changes in one PR.
does this acceptable? if not, I have to move the definition to this patch.
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 changed to make each PR independent.
src/schedule/zephyr_ll.c
Outdated
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.
Should ..._avg be coupled with CONFIGU_PERFORMACE_COUNTERS_RUN_AVERAGE?
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.
yeah, in theory, it should, however, I even want to remove the CONFIG_PERFORMANCE_COUNTERS_RUN_AVERAGE, because since performance counter enabled, no need second switch, what do you think? if you agree, I can raise another patch to remove AVERAGE, I don't think it make too much sense.
I did not do this, because I don't want to break history, due to I am new, if you want a change, I can make it, :)
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.
Yes, I'd simplify and merge run_average into a single config option.
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.
ok, I will submit another patch to do this after all are merged.
src/include/sof/schedule/task.h
Outdated
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.
You have now two new lines. Just keep one.
This patch is used to make sure profiling code only can be run with performance profiling build, and unify all performance profiling with same format and usage. Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
|
Merged this, but then noticed that there is a build error: Anyhow, this doesn't look to be related to this commit. So I think it should be fine. Someone at Intel needs to look into the build failure. |
|
@dbaluta That's ok, that is fixed in mainline SOF already. |
marc-hb
left a comment
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.
BTW there is still a similar tr_info() in src/schedule/zephyr_domain.c even after this PR. That's all I know.
This patch is used to make sure profiling code only can be run with performance profiling build, and unify all performance profiling with same format and usage.
Signed-off-by: Baofeng Tian baofeng.tian@intel.com