pm_runtime: Log context and index value in verbose traces

It's important to know which pm_runtime_context is related with
given call to pm_runtime* function.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-07-08 12:25:52 +02:00 committed by Liam Girdwood
parent e9c83cf009
commit 1c605d3275
1 changed files with 12 additions and 7 deletions

View File

@ -38,7 +38,7 @@ void pm_runtime_init(struct sof *sof)
void pm_runtime_get(enum pm_runtime_context context, uint32_t index) void pm_runtime_get(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_get()"); tr_dbg(&pm_tr, "pm_runtime_get() context %d index %d", context, index);
switch (context) { switch (context) {
default: default:
@ -49,7 +49,8 @@ void pm_runtime_get(enum pm_runtime_context context, uint32_t index)
void pm_runtime_get_sync(enum pm_runtime_context context, uint32_t index) void pm_runtime_get_sync(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_get_sync()"); tr_dbg(&pm_tr, "pm_runtime_get_sync() context %d index %d", context,
index);
switch (context) { switch (context) {
default: default:
@ -60,7 +61,7 @@ void pm_runtime_get_sync(enum pm_runtime_context context, uint32_t index)
void pm_runtime_put(enum pm_runtime_context context, uint32_t index) void pm_runtime_put(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_put()"); tr_dbg(&pm_tr, "pm_runtime_put() context %d index %d", context, index);
switch (context) { switch (context) {
default: default:
@ -71,7 +72,8 @@ void pm_runtime_put(enum pm_runtime_context context, uint32_t index)
void pm_runtime_put_sync(enum pm_runtime_context context, uint32_t index) void pm_runtime_put_sync(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_put_sync()"); tr_dbg(&pm_tr, "pm_runtime_put_sync() context %d index %d", context,
index);
switch (context) { switch (context) {
default: default:
@ -82,7 +84,8 @@ void pm_runtime_put_sync(enum pm_runtime_context context, uint32_t index)
void pm_runtime_enable(enum pm_runtime_context context, uint32_t index) void pm_runtime_enable(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_enable()"); tr_dbg(&pm_tr, "pm_runtime_enable() context %d index %d", context,
index);
switch (context) { switch (context) {
default: default:
@ -93,7 +96,8 @@ void pm_runtime_enable(enum pm_runtime_context context, uint32_t index)
void pm_runtime_disable(enum pm_runtime_context context, uint32_t index) void pm_runtime_disable(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_disable()"); tr_dbg(&pm_tr, "pm_runtime_disable() context %d index %d", context,
index);
switch (context) { switch (context) {
default: default:
@ -104,7 +108,8 @@ void pm_runtime_disable(enum pm_runtime_context context, uint32_t index)
bool pm_runtime_is_active(enum pm_runtime_context context, uint32_t index) bool pm_runtime_is_active(enum pm_runtime_context context, uint32_t index)
{ {
tr_dbg(&pm_tr, "pm_runtime_is_active()"); tr_dbg(&pm_tr, "pm_runtime_is_active() context %d index %d", context,
index);
switch (context) { switch (context) {
default: default: