diff options
author | Jae Hyun Yoo <jae.hyun.yoo@intel.com> | 2021-02-04 03:18:37 +0300 |
---|---|---|
committer | Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> | 2021-10-28 00:35:49 +0300 |
commit | 551692a3d6e4acad61e20848dfbbd4544a8eb5ec (patch) | |
tree | 0e189284cbf4e57dc008cdceb4903dfe48d5d9dc | |
parent | 5961fe1c6410a03315731cb88260e85cb4fbd3c7 (diff) | |
download | linux-551692a3d6e4acad61e20848dfbbd4544a8eb5ec.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>
-rw-r--r-- | drivers/peci/peci-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/peci/peci-core.c b/drivers/peci/peci-core.c index f4c89d9e94f2..d81286d79c01 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 |