summaryrefslogtreecommitdiff
path: root/drivers/peci
diff options
context:
space:
mode:
authorJae Hyun Yoo <jae.hyun.yoo@intel.com>2021-02-04 03:18:37 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-11-05 10:22:17 +0300
commit532a9a1808cec8664239d214a1b66f28be901dca (patch)
treef04443716da289804d2d7c4cca11110ce3721ab8 /drivers/peci
parenta0e73516d820cde380b605d04a5a8920d99936f6 (diff)
downloadlinux-532a9a1808cec8664239d214a1b66f28be901dca.tar.xz
peci: Add debug printing to check caller PID
This commit adds debug printing out to check caller PID for traffic profiling. The printing can be enabled by this command: echo -n 'file drivers/peci/peci-core.c line 218 +p' > /sys/kernel/debug/dynamic_debug/control echo '8' > /proc/sys/kernel/printk Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@intel.com>
Diffstat (limited to 'drivers/peci')
-rw-r--r--drivers/peci/peci-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/peci/peci-core.c b/drivers/peci/peci-core.c
index 261a1deb5059..72d9a909125b 100644
--- a/drivers/peci/peci-core.c
+++ b/drivers/peci/peci-core.c
@@ -194,6 +194,7 @@ static int __peci_xfer(struct peci_adapter *adapter, struct peci_xfer_msg *msg,
bool do_retry, bool has_aw_fcs)
{
uint interval_us = PECI_DEV_RETRY_INTERVAL_MIN_USEC;
+ char task_name[TASK_COMM_LEN];
ulong timeout = jiffies;
u8 aw_fcs;
int ret;
@@ -214,6 +215,10 @@ static int __peci_xfer(struct peci_adapter *adapter, struct peci_xfer_msg *msg,
}
}
+ get_task_comm(task_name, current);
+ dev_dbg(&adapter->dev, "%s is called by %s(%d) through %s\n",
+ __func__, task_name, current->pid, adapter->name);
+
/*
* For some commands, the PECI originator may need to retry a command if
* the processor PECI client responds with a 0x8x completion code. In