summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIgor Nabirushkin <inabirushkin@nvidia.com>2013-09-24 07:46:16 -0400
committerIgor Nabirushkin <inabirushkin@nvidia.com>2017-07-13 10:18:39 -0400
commit9a34bbcf77fb805e58db924c0ec41797ffc80847 (patch)
treec8de636b38aac872f9e59bdfc781a8c2627caac8 /include/linux
parent1ed6acea52a2c62e854f83b00ab8aaa5395a0f94 (diff)
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 <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/298725 (cherry picked from commit 62fb9454f0348ae22c48f74803d60bfb129b93cf)
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra_profiler.h9
1 files changed, 7 insertions, 2 deletions
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 @@
20#include <linux/ioctl.h> 20#include <linux/ioctl.h>
21 21
22#define QUADD_SAMPLES_VERSION 16 22#define QUADD_SAMPLES_VERSION 16
23#define QUADD_IO_VERSION 5 23#define QUADD_IO_VERSION 6
24 24
25#define QUADD_IO_VERSION_DYNAMIC_RB 5 25#define QUADD_IO_VERSION_DYNAMIC_RB 5
26#define QUADD_IO_VERSION_RB_MAX_FILL_COUNT 6
26 27
27#define QUADD_MAX_COUNTERS 32 28#define QUADD_MAX_COUNTERS 32
28#define QUADD_MAX_PROCESS 64 29#define QUADD_MAX_PROCESS 64
@@ -283,6 +284,10 @@ struct quadd_comm_cap {
283 u32 reserved[16]; /* reserved fields for future extensions */ 284 u32 reserved[16]; /* reserved fields for future extensions */
284}; 285};
285 286
287enum {
288 QUADD_MOD_STATE_IDX_RB_MAX_FILL_COUNT = 0,
289};
290
286struct quadd_module_state { 291struct quadd_module_state {
287 u64 nr_all_samples; 292 u64 nr_all_samples;
288 u64 nr_skipped_samples; 293 u64 nr_skipped_samples;