From 08728775b30545682a2886ba3a3b1fdc24e95c22 Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Wed, 31 Jul 2013 15:17:47 +0400 Subject: misc: tegra-profiler: allocate memory on demand Tegra Profiler misc driver: allocate memory on demand from the user space, not on boot Bug 1312406 Change-Id: Idc5e8365e38b7faca236e011d9e665f53ac992e6 Signed-off-by: Igor Nabirushkin Reviewed-on: http://git-master/r/256309 (cherry picked from commit 65234ad36d4c8eeef7753643d6cb2cf0c7f77976) Reviewed-on: http://git-master/r/268513 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin Reviewed-by: Bo Yan --- include/linux/tegra_profiler.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/linux/tegra_profiler.h') diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index 609a78feadfe..e8f17ad75792 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h @@ -20,7 +20,9 @@ #include #define QUADD_SAMPLES_VERSION 16 -#define QUADD_IO_VERSION 4 +#define QUADD_IO_VERSION 5 + +#define QUADD_IO_VERSION_DYNAMIC_RB 5 #define QUADD_MAX_COUNTERS 32 #define QUADD_MAX_PROCESS 64 @@ -227,6 +229,10 @@ struct quadd_record_data { #define QUADD_MAX_PACKAGE_NAME 320 +enum { + QUADD_PARAM_IDX_SIZE_OF_RB = 0, +}; + struct quadd_parameters { u32 freq; u32 ma_freq; -- cgit v1.2.3