diff options
| author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2017-03-06 05:00:20 -0500 |
|---|---|---|
| committer | Igor Nabirushkin <inabirushkin@nvidia.com> | 2017-07-13 10:18:43 -0400 |
| commit | ce134abdb2e8aac5264530f98f5f08e93ad1b91b (patch) | |
| tree | fded78fb9b7afea57d78b3900692571503fa82a1 /include/linux | |
| parent | b9cd665d7c45ef24ead0ada0c5207c132e0dd6b4 (diff) | |
misc: tegra-profiler: use power-of-2 sized buffer
Kernel/User-space circle buffers:
- Use power-of-2 sized buffers to reduce overhead
- Use the common circular buffer macros
Bug 1881997
Change-Id: I664f4745e625cc4cd395d1683eada191abe12624
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1315654
(cherry picked from commit a7971b07d3f04fe424a3506ae665214e76abecb4)
Reviewed-on: http://git-master/r/1321052
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tegra_profiler.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index e94ddd9f9..8405fa43a 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * include/linux/tegra_profiler.h | 2 | * include/linux/tegra_profiler.h |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2013-2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
| @@ -20,7 +20,7 @@ | |||
| 20 | #include <linux/ioctl.h> | 20 | #include <linux/ioctl.h> |
| 21 | 21 | ||
| 22 | #define QUADD_SAMPLES_VERSION 37 | 22 | #define QUADD_SAMPLES_VERSION 37 |
| 23 | #define QUADD_IO_VERSION 20 | 23 | #define QUADD_IO_VERSION 21 |
| 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 | #define QUADD_IO_VERSION_RB_MAX_FILL_COUNT 6 |
| @@ -36,8 +36,9 @@ | |||
| 36 | #define QUADD_IO_VERSION_STACK_OFFSET 16 | 36 | #define QUADD_IO_VERSION_STACK_OFFSET 16 |
| 37 | #define QUADD_IO_VERSION_SECTIONS_INFO 17 | 37 | #define QUADD_IO_VERSION_SECTIONS_INFO 17 |
| 38 | #define QUADD_IO_VERSION_UNW_METHODS_OPT 18 | 38 | #define QUADD_IO_VERSION_UNW_METHODS_OPT 18 |
| 39 | #define QUADD_IO_VERSION_PER_CPU_SETUP 19 | 39 | #define QUADD_IO_VERSION_PER_CPU_SETUP 19 |
| 40 | #define QUADD_IO_VERSION_TRACE_ALL_TASKS 20 | 40 | #define QUADD_IO_VERSION_TRACE_ALL_TASKS 20 |
| 41 | #define QUADD_IO_VERSION_CB_POWER_OF_2 21 | ||
| 41 | 42 | ||
| 42 | #define QUADD_SAMPLE_VERSION_THUMB_MODE_FLAG 17 | 43 | #define QUADD_SAMPLE_VERSION_THUMB_MODE_FLAG 17 |
| 43 | #define QUADD_SAMPLE_VERSION_GROUP_SAMPLES 18 | 44 | #define QUADD_SAMPLE_VERSION_GROUP_SAMPLES 18 |
