summaryrefslogtreecommitdiff
path: root/include/trace/events
diff options
context:
space:
mode:
authorAntti P Miettinen <amiettinen@nvidia.com>2013-11-18 19:55:39 +0200
committerJuha Tukkinen <jtukkinen@nvidia.com>2013-11-21 04:13:33 -0800
commit1349110739618e4d0e6f7309f9eaebfa4d97a87a (patch)
treec002c0bed8cf71a9ca68a5263d495e407744fc18 /include/trace/events
parent0b87174ea91506d1597fe820588c964b5a676b48 (diff)
ARM: tegra: add cluster to traces
Log start and target cluster in cluster switch event traces. Change-Id: I5b83139809cb8e4928033ade87c14321e7ce2aad Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com> Reviewed-on: http://git-master/r/332498 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/nvpower.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/trace/events/nvpower.h b/include/trace/events/nvpower.h
index d1c14806ba64..3671516a297e 100644
--- a/include/trace/events/nvpower.h
+++ b/include/trace/events/nvpower.h
@@ -3,7 +3,7 @@
*
* NVIDIA Tegra specific power events.
*
- * Copyright (c) 2010-2012, NVIDIA Corporation.
+ * Copyright (c) 2010-2013, 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 as published by
@@ -51,20 +51,26 @@ enum {
TRACE_EVENT(nvcpu_cluster,
- TP_PROTO(int state),
+ TP_PROTO(int state, int start, int target),
- TP_ARGS(state),
+ TP_ARGS(state, start, target),
TP_STRUCT__entry(
__field(u64, state)
+ __field(u32, start)
+ __field(u32, target)
),
TP_fast_assign(
__entry->state = state;
+ __entry->start = start;
+ __entry->target = target;
),
- TP_printk("state=%lu",
- (unsigned long)__entry->state)
+ TP_printk("state=%lu, start=0x%08lx, target=0x%08lx",
+ (unsigned long)__entry->state,
+ (unsigned long)__entry->start,
+ (unsigned long)__entry->target)
);
extern u32 notrace tegra_read_usec_raw(void);