diff options
author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2013-09-24 18:22:09 +0400 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2013-12-10 16:22:31 -0800 |
commit | 918aa0d7567755ea3aa86e18ca01bb747329f341 (patch) | |
tree | 0ecb34ca0a9ca6099cc695edaeba6f33a56cded9 /include | |
parent | 1e5922b8fb4bfe1a766391fdf9a9803b0dd68827 (diff) |
misc: tegra-profiler: add /proc/quadd/status
Add /proc/quadd/status
It allows users to see current status of the Tegra Profiler.
Bug 1374376
Change-Id: I70d548c47bc80f6a12e3637f0af38fe74403de2d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/324086
(cherry picked from commit c63155fe6ee3765af0529a67a3b9383f675f604c)
Reviewed-on: http://git-master/r/340013
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index 823b05e5a6f8..1fda9594ce94 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h @@ -20,10 +20,11 @@ #include <linux/ioctl.h> #define QUADD_SAMPLES_VERSION 17 -#define QUADD_IO_VERSION 6 +#define QUADD_IO_VERSION 7 #define QUADD_IO_VERSION_DYNAMIC_RB 5 #define QUADD_IO_VERSION_RB_MAX_FILL_COUNT 6 +#define QUADD_IO_VERSION_MOD_STATE_STATUS_FIELD 7 #define QUADD_SAMPLE_VERSION_THUMB_MODE_FLAG 17 @@ -289,8 +290,12 @@ struct quadd_comm_cap { enum { QUADD_MOD_STATE_IDX_RB_MAX_FILL_COUNT = 0, + QUADD_MOD_STATE_IDX_STATUS, }; +#define QUADD_MOD_STATE_STATUS_IS_ACTIVE (1 << 0) +#define QUADD_MOD_STATE_STATUS_IS_AUTH_OPEN (1 << 1) + struct quadd_module_state { u64 nr_all_samples; u64 nr_skipped_samples; |