diff options
| author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2016-10-10 09:17:40 -0400 |
|---|---|---|
| committer | Igor Nabirushkin <inabirushkin@nvidia.com> | 2017-07-13 10:18:42 -0400 |
| commit | dbcde4581ba8831965debdb4dfd423492a37346e (patch) | |
| tree | 3e69d54615c6346ae9dab7abeeac8e4d61d1facf /include/linux | |
| parent | 7e0ade371815b3a61d23ff10f8872b1cf58f0836 (diff) | |
misc: tegra-profiler: add timestamps to mmap event
- Add timestamps to mmap events.
- Add size of sample data (useful for user space).
Bug 1825161
Change-Id: I13d63f938d891eac1e697fab1d6118a57a5faa4b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1236248
(cherry picked from commit a579114554384f5ec497e9c954032ac7ccc9d6a7)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tegra_profiler.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index 76640812b..e94ddd9f9 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | #include <linux/ioctl.h> | 20 | #include <linux/ioctl.h> |
| 21 | 21 | ||
| 22 | #define QUADD_SAMPLES_VERSION 36 | 22 | #define QUADD_SAMPLES_VERSION 37 |
| 23 | #define QUADD_IO_VERSION 20 | 23 | #define QUADD_IO_VERSION 20 |
| 24 | 24 | ||
| 25 | #define QUADD_IO_VERSION_DYNAMIC_RB 5 | 25 | #define QUADD_IO_VERSION_DYNAMIC_RB 5 |
| @@ -55,8 +55,9 @@ | |||
| 55 | #define QUADD_SAMPLE_VERSION_SCHED_TASK_STATE 32 | 55 | #define QUADD_SAMPLE_VERSION_SCHED_TASK_STATE 32 |
| 56 | #define QUADD_SAMPLE_VERSION_URCS 33 | 56 | #define QUADD_SAMPLE_VERSION_URCS 33 |
| 57 | #define QUADD_SAMPLE_VERSION_HOTPLUG 34 | 57 | #define QUADD_SAMPLE_VERSION_HOTPLUG 34 |
| 58 | #define QUADD_SAMPLE_VERSION_PER_CPU_SETUP 35 | 58 | #define QUADD_SAMPLE_VERSION_PER_CPU_SETUP 35 |
| 59 | #define QUADD_SAMPLE_VERSION_REPORT_TGID 36 | 59 | #define QUADD_SAMPLE_VERSION_REPORT_TGID 36 |
| 60 | #define QUADD_SAMPLE_VERSION_MMAP_TS 37 | ||
| 60 | 61 | ||
| 61 | #define QUADD_MMAP_HEADER_VERSION 1 | 62 | #define QUADD_MMAP_HEADER_VERSION 1 |
| 62 | 63 | ||
| @@ -254,6 +255,7 @@ struct quadd_sample_data { | |||
| 254 | 255 | ||
| 255 | struct quadd_mmap_data { | 256 | struct quadd_mmap_data { |
| 256 | u32 pid; | 257 | u32 pid; |
| 258 | u64 time; | ||
| 257 | 259 | ||
| 258 | u64 addr; | 260 | u64 addr; |
| 259 | u64 len; | 261 | u64 len; |
| @@ -375,6 +377,7 @@ struct quadd_header_data { | |||
| 375 | 377 | ||
| 376 | struct quadd_record_data { | 378 | struct quadd_record_data { |
| 377 | u8 record_type; | 379 | u8 record_type; |
| 380 | u16 extra_size; | ||
| 378 | 381 | ||
| 379 | /* sample: it should be the biggest size */ | 382 | /* sample: it should be the biggest size */ |
| 380 | union { | 383 | union { |
