summaryrefslogtreecommitdiffstats
path: root/include/trace/events
diff options
context:
space:
mode:
authorRyan O'Leary <roleary@nvidia.com>2017-11-20 20:56:14 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-01 16:53:09 -0500
commit67b400776536fa73eaffabba081745f3db5c7ca6 (patch)
tree9843ddec7284a4a1b612a1fc2ec8dce0ffb92e8b /include/trace/events
parent8ff3d2b80196feeabbcf8a543f257943893ad680 (diff)
tegra: bwmgr: Add ftrace to tegra_bwmgr_set_emc
Add ftrace trace point to tegra_bwmgr_set_emc function including arguments. JIRA TPM-1205 Change-Id: I097ae6bc8e3be39a52b5f1b6eff39c974a70c2eb Signed-off-by: Ryan O'Leary <roleary@nvidia.com> (cherry picked from commit 444adfc783ab3eeec9f44fc93b8c75cf4ca88f0c) Signed-off-by: Ian Kaszubski <ikaszubski@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1662122 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sanjay Chandrashekara <sanjayc@nvidia.com> Reviewed-by: Ajith Kumar <ajithk@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com> Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/bwmgr.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/include/trace/events/bwmgr.h b/include/trace/events/bwmgr.h
new file mode 100644
index 000000000..1a02bd381
--- /dev/null
+++ b/include/trace/events/bwmgr.h
@@ -0,0 +1,56 @@
1/*
2 * Bwmgr event logging to ftrace.
3 *
4 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#undef TRACE_SYSTEM
17#define TRACE_SYSTEM bwmgr
18
19#if !defined(_TRACE_BWMGR_H) || defined(TRACE_HEADER_MULTI_READ)
20#define _TRACE_BWMGR_H
21
22#include <linux/ktime.h>
23#include <linux/tracepoint.h>
24
25TRACE_EVENT(tegra_bwmgr_set_emc,
26 TP_PROTO(
27 const char *handle,
28 unsigned long val,
29 const char *req
30 ),
31
32 TP_ARGS(handle, val, req),
33
34 TP_STRUCT__entry(
35 __field(const char *, handle)
36 __field(unsigned long, val)
37 __field(const char *, req)
38 ),
39
40 TP_fast_assign(
41 __entry->handle = handle;
42 __entry->val = val;
43 __entry->req = req;
44 ),
45
46 TP_printk("handle=%s, val=%lu, req=%s",
47 __entry->handle,
48 __entry->val,
49 __entry->req
50 )
51);
52
53#endif /* _TRACE_BWMGR_H */
54
55/* This part must be outside protection */
56#include <trace/define_trace.h>