summaryrefslogtreecommitdiff
path: root/include/trace/events
diff options
context:
space:
mode:
authorOdelu Kukatla <okukatla@codeaurora.org>2017-11-07 21:23:02 +0530
committerOdelu Kukatla <okukatla@codeaurora.org>2017-11-08 10:58:19 +0530
commit16d78cda70e116fb9cb61790b93b0c85e107ba4b (patch)
treec8a35d20bf38c62609a0341bd91345af8fc97410 /include/trace/events
parent91da619c3a57a7abcfa421200fd8aff275890772 (diff)
soc: qcom: msm_bus: Add debug logging for max bandwidth votes
Max bandwidth vote on each bus device is required to be printed when the device panics, so add a panic notifier to print the max BW votes on each bus device. Change-Id: I2256407638fe5085cb4b0f4d5a594dd00f4f3bce Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/trace_msm_bus.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/include/trace/events/trace_msm_bus.h b/include/trace/events/trace_msm_bus.h
index d914a9660049..3f56fc1e80fb 100644
--- a/include/trace/events/trace_msm_bus.h
+++ b/include/trace/events/trace_msm_bus.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -72,6 +72,44 @@ TRACE_EVENT(bus_update_request_end,
TP_printk("client-name=%s", __get_str(name))
);
+TRACE_EVENT(bus_max_votes,
+
+ TP_PROTO(int sec, int nsec, const char *bus_name, const char *ctx,
+ const char *bw_type_name, unsigned long long bw,
+ const char *cl_name),
+
+ TP_ARGS(sec, nsec, bus_name, ctx, bw_type_name, bw, cl_name),
+
+ TP_STRUCT__entry(
+ __field(int, sec)
+ __field(int, nsec)
+ __string(bus_name, bus_name)
+ __string(ctx, ctx)
+ __string(bw_type_name, bw_type_name)
+ __field(u64, bw)
+ __string(cl_name, cl_name)
+ ),
+
+ TP_fast_assign(
+ __entry->sec = sec;
+ __entry->nsec = nsec;
+ __assign_str(bus_name, bus_name);
+ __assign_str(ctx, ctx);
+ __assign_str(bw_type_name, bw_type_name);
+ __entry->bw = bw;
+ __assign_str(cl_name, cl_name);
+ ),
+
+ TP_printk("time= %u.%09u %s: %s max_%s: %llu: client-name: %s",
+ __entry->sec,
+ __entry->nsec,
+ __get_str(bus_name),
+ __get_str(ctx),
+ __get_str(bw_type_name),
+ (unsigned long long)__entry->bw,
+ __get_str(cl_name))
+);
+
TRACE_EVENT(bus_bimc_config_limiter,
TP_PROTO(int mas_id, unsigned long long cur_lim_bw),