From 67b400776536fa73eaffabba081745f3db5c7ca6 Mon Sep 17 00:00:00 2001 From: Ryan O'Leary Date: Mon, 20 Nov 2017 17:56:14 -0800 Subject: 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 (cherry picked from commit 444adfc783ab3eeec9f44fc93b8c75cf4ca88f0c) Signed-off-by: Ian Kaszubski Reviewed-on: https://git-master.nvidia.com/r/1662122 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Sanjay Chandrashekara Reviewed-by: Ajith Kumar Reviewed-by: Jon Mayo Reviewed-by: Krishna Sitaraman Reviewed-by: Bhanu Murthy V Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/trace/events/bwmgr.h | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 include/trace/events/bwmgr.h (limited to 'include/trace/events') 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 @@ +/* + * Bwmgr event logging to ftrace. + * + * Copyright (c) 2018, NVIDIA CORPORATION. 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 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#undef TRACE_SYSTEM +#define TRACE_SYSTEM bwmgr + +#if !defined(_TRACE_BWMGR_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_BWMGR_H + +#include +#include + +TRACE_EVENT(tegra_bwmgr_set_emc, + TP_PROTO( + const char *handle, + unsigned long val, + const char *req + ), + + TP_ARGS(handle, val, req), + + TP_STRUCT__entry( + __field(const char *, handle) + __field(unsigned long, val) + __field(const char *, req) + ), + + TP_fast_assign( + __entry->handle = handle; + __entry->val = val; + __entry->req = req; + ), + + TP_printk("handle=%s, val=%lu, req=%s", + __entry->handle, + __entry->val, + __entry->req + ) +); + +#endif /* _TRACE_BWMGR_H */ + +/* This part must be outside protection */ +#include -- cgit v1.2.2