diff options
author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2014-01-26 17:59:25 +0400 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-02-19 16:09:36 -0800 |
commit | 0dad535ec93d0adc709a498ed4776f07a0196f47 (patch) | |
tree | 43766f55be3f7bcc7d42fdc5c181d9893defc539 /drivers/misc/tegra-profiler/backtrace.c | |
parent | 587e0115007c1bb7dbe092462d8491a4e5d7f824 (diff) |
misc: tegra-profiler: add group samples
Group CPU cycles and cache misses samples.
To reduce the amount of data passed from the target to the host,
we can group samples that have a lot of common information.
Bug 1447582
Change-Id: I9b16bf4f18455ff6219fd58373eceba4cb71e352
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365849
(cherry picked from commit 48c34477a883e3b7a7872ab9f3de725f9542060a)
Reviewed-on: http://git-master/r/368205
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/misc/tegra-profiler/backtrace.c')
-rw-r--r-- | drivers/misc/tegra-profiler/backtrace.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/misc/tegra-profiler/backtrace.c b/drivers/misc/tegra-profiler/backtrace.c index 3191def82ce0..ce02f82d17e1 100644 --- a/drivers/misc/tegra-profiler/backtrace.c +++ b/drivers/misc/tegra-profiler/backtrace.c @@ -1,7 +1,7 @@ /* * drivers/misc/tegra-profiler/backtrace.c * - * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014, 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, @@ -28,13 +28,11 @@ #define QUADD_USER_SPACE_MIN_ADDR 0x8000 static inline void -quadd_callchain_store(struct quadd_callchain *callchain_data, u32 ip) +quadd_callchain_store(struct quadd_callchain *callchain_data, + quadd_bt_addr_t ip) { - if (callchain_data->nr < QUADD_MAX_STACK_DEPTH) { - /* pr_debug("[%d] Add entry: %#llx\n", - callchain_data->nr, ip); */ + if (callchain_data->nr < QUADD_MAX_STACK_DEPTH) callchain_data->callchain[callchain_data->nr++] = ip; - } } static int |