From 29c8cdd7ad2fefa85ccb36b6b39eeae01a8af868 Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Mon, 19 Feb 2018 00:39:19 +0400 Subject: misc: tegra-profiler: force to use cntvct - Add a parameter to force use of CNTVCT register for timestamps. - Always verify the profiled process in case when "sampling" flag is enabled. Bug 2063579 Change-Id: Ia7a6d7e797b2d4c9d3eac7827adece638d9cf3ab Signed-off-by: Igor Nabirushkin Reviewed-on: https://git-master.nvidia.com/r/1660718 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Antipov Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_profiler.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index c5de07bf7..d101ccc1a 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h @@ -20,7 +20,7 @@ #include #define QUADD_SAMPLES_VERSION 42 -#define QUADD_IO_VERSION 23 +#define QUADD_IO_VERSION 24 #define QUADD_IO_VERSION_DYNAMIC_RB 5 #define QUADD_IO_VERSION_RB_MAX_FILL_COUNT 6 @@ -41,6 +41,7 @@ #define QUADD_IO_VERSION_CB_POWER_OF_2 21 #define QUADD_IO_VERSION_RAW_EVENTS 22 #define QUADD_IO_VERSION_SAMPLING_MODE 23 +#define QUADD_IO_VERSION_FORCE_ARCH_TIMER 24 #define QUADD_SAMPLE_VERSION_THUMB_MODE_FLAG 17 #define QUADD_SAMPLE_VERSION_GROUP_SAMPLES 18 @@ -417,6 +418,7 @@ enum { #define QUADD_PARAM_EXTRA_BT_DWARF (1 << 7) #define QUADD_PARAM_EXTRA_PER_PMU_SETUP (1 << 8) #define QUADD_PARAM_EXTRA_SAMPLING (1 << 9) +#define QUADD_PARAM_EXTRA_FORCE_ARCH_TIMER (1 << 10) enum { QUADD_EVENT_TYPE_RAW = 0, @@ -495,6 +497,7 @@ enum { #define QUADD_COMM_CAP_EXTRA_ARCH_TIMER (1 << 8) #define QUADD_COMM_CAP_EXTRA_RB_MMAP_OP (1 << 9) #define QUADD_COMM_CAP_EXTRA_CPU_MASK (1 << 10) +#define QUADD_COMM_CAP_EXTRA_ARCH_TIMER_USR (1 << 11) struct quadd_comm_cap { u32 pmu:1, -- cgit v1.2.2