summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-11-09 09:58:56 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-09 09:58:56 -0800
commitd36a884a1ef5b6808bea1f402fdbe976f85d993c (patch)
treedaa55efe2b6dd99a3bbfb21f2de0320824652534 /include
parent59b028f31db3a73cf66f6947eece80d141ad36e4 (diff)
parent16d78cda70e116fb9cb61790b93b0c85e107ba4b (diff)
Merge "soc: qcom: msm_bus: Add debug logging for max bandwidth votes"
Diffstat (limited to 'include')
-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),