[COMMON] PM: Fixed debugging information for pm_qos in kernel 4.4.
authorWoosung Lee <wstar.lee@samsung.com>
Wed, 20 Aug 2014 05:53:14 +0000 (14:53 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:09 +0000 (20:22 +0300)
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 <wstar.lee@samsung.com>
kernel/power/qos.c

index 73392803123fd6020af3bcb55831c71df4763af2..ce0c6a4ba4e238d3bc587978835426e254663473 100644 (file)
@@ -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",