From ce134abdb2e8aac5264530f98f5f08e93ad1b91b Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Mon, 6 Mar 2017 14:00:20 +0400 Subject: 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 Reviewed-on: http://git-master/r/1315654 (cherry picked from commit a7971b07d3f04fe424a3506ae665214e76abecb4) Reviewed-on: http://git-master/r/1321052 --- include/linux/tegra_profiler.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/linux') 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 @@ /* * include/linux/tegra_profiler.h * - * Copyright (c) 2013-2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -20,7 +20,7 @@ #include #define QUADD_SAMPLES_VERSION 37 -#define QUADD_IO_VERSION 20 +#define QUADD_IO_VERSION 21 #define QUADD_IO_VERSION_DYNAMIC_RB 5 #define QUADD_IO_VERSION_RB_MAX_FILL_COUNT 6 @@ -36,8 +36,9 @@ #define QUADD_IO_VERSION_STACK_OFFSET 16 #define QUADD_IO_VERSION_SECTIONS_INFO 17 #define QUADD_IO_VERSION_UNW_METHODS_OPT 18 -#define QUADD_IO_VERSION_PER_CPU_SETUP 19 -#define QUADD_IO_VERSION_TRACE_ALL_TASKS 20 +#define QUADD_IO_VERSION_PER_CPU_SETUP 19 +#define QUADD_IO_VERSION_TRACE_ALL_TASKS 20 +#define QUADD_IO_VERSION_CB_POWER_OF_2 21 #define QUADD_SAMPLE_VERSION_THUMB_MODE_FLAG 17 #define QUADD_SAMPLE_VERSION_GROUP_SAMPLES 18 -- cgit v1.2.2