diff options
author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2013-09-24 15:46:16 +0400 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2013-12-10 16:21:29 -0800 |
commit | 6a1f8af7c5fe956aca1a03f5d35d9e8894bd93dc (patch) | |
tree | 6e346ff3386857ddb15766a4c41c0780c9a20777 /include | |
parent | a699e88b09cd9f8e367b0ad9c7f05b48ccbe484d (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/324051
(cherry picked from commit 9e94874e5edee9baa2e6be21712fa67a967eb6bc)
Reviewed-on: http://git-master/r/340006
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_profiler.h | 9 |
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; |