profiling task: modify task profiling with performance counter macro#6407
profiling task: modify task profiling with performance counter macro#6407dbaluta merged 1 commit intothesofproject:mainfrom
Conversation
|
Please check compile errors. |
src/schedule/zephyr_ll.c
Outdated
There was a problem hiding this comment.
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.
I changed to make each PR independent.
src/schedule/zephyr_ll.c
Outdated
There was a problem hiding this comment.
Should ..._avg be coupled with CONFIGU_PERFORMACE_COUNTERS_RUN_AVERAGE?
There was a problem hiding this comment.
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.
Yes, I'd simplify and merge run_average into a single config option.
There was a problem hiding this comment.
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.
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.
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