From 21ed3f39012787c2020b2444b76e390f04a098a8 Mon Sep 17 00:00:00 2001 From: Woosung Lee Date: Wed, 20 Aug 2014 14:53:14 +0900 Subject: [PATCH] [COMMON] PM: Fixed debugging information for pm_qos in kernel 4.4. During debugging or profiling, pm_qos list like below is useful information. device_throughput default value: 0 target value: 468000 requests: ffffffc0012896f8: 0 ffffffc06f2f0458: 0 But only pm_qos_request declared for global name space could find what it is. If pm_qos_request declared in local name space, its address doesn't appeared in System.map file. So add more information about pm_qos_request's position like below. device_throughput default value: 0 target value: 468000 requests: ffffffc0012896f8(lpass_probe:1027): 0 ffffffc06f2f0458(fimg2d_pm_qos_add_bus:170): 0 Change-Id: Ib4d18bb7fb44fc6f5c4516382447ed2e60b1efd5 Signed-off-by: Woosung Lee --- kernel/power/qos.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 73392803123f..ce0c6a4ba4e2 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -625,8 +625,10 @@ static int pm_qos_dbg_show_requests(struct seq_file *s, void *unused) state = "Active"; } tot_reqs++; - seq_printf(s, "%d: %d: %s\n", tot_reqs, - (req->node).prio, state); + seq_printf(s, "%d: %d: %s(%s:%d)\n", tot_reqs, + (req->node).prio, state, + req->func, + req->line); } seq_printf(s, "Type=%s, Value=%d, Requests: active=%d / total=%d\n", -- 2.20.1