From 9a34bbcf77fb805e58db924c0ec41797ffc80847 Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Tue, 24 Sep 2013 15:46:16 +0400 Subject: misc: tegra-profiler: send buffer fill count Tegra Profiler misc driver: transmit the maximum buffer occupancy to the user space. Bug 1374266 Change-Id: Id078083a5493552c1f3bb697a1d3e4a5504e3f82 Signed-off-by: Igor Nabirushkin Reviewed-on: http://git-master/r/298725 (cherry picked from commit 62fb9454f0348ae22c48f74803d60bfb129b93cf) --- include/linux/tegra_profiler.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index 5840ba3a8..2efa9c185 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h @@ -20,9 +20,10 @@ #include #define QUADD_SAMPLES_VERSION 16 -#define QUADD_IO_VERSION 5 +#define QUADD_IO_VERSION 6 -#define QUADD_IO_VERSION_DYNAMIC_RB 5 +#define QUADD_IO_VERSION_DYNAMIC_RB 5 +#define QUADD_IO_VERSION_RB_MAX_FILL_COUNT 6 #define QUADD_MAX_COUNTERS 32 #define QUADD_MAX_PROCESS 64 @@ -283,6 +284,10 @@ struct quadd_comm_cap { u32 reserved[16]; /* reserved fields for future extensions */ }; +enum { + QUADD_MOD_STATE_IDX_RB_MAX_FILL_COUNT = 0, +}; + struct quadd_module_state { u64 nr_all_samples; u64 nr_skipped_samples; -- cgit v1.2.2