summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIgor Nabirushkin <inabirushkin@nvidia.com>2013-09-24 15:46:16 +0400
committerRiham Haidar <rhaidar@nvidia.com>2013-11-07 12:11:52 -0800
commite35f1b96133d71434ef7d6910b730f85fe05d2d5 (patch)
tree7360bc2de6c3fac2715a1ec88817641323aebf06 /include
parenta631d021452d987618875c262e7b968f3304eb84 (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/309633 (cherry picked from commit 757f16d5b83328d984feb3f37ebe6790fb42d15d) Reviewed-on: http://git-master/r/325975 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-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 5840ba3a8824..2efa9c185e6c 100644
--- a/include/linux/tegra_profiler.h
+++ b/include/linux/tegra_profiler.h
@@ -20,9 +20,10 @@
#include <linux/ioctl.h>
#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;