mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
drivers: tegra: virt: runtime frequency
- Add support to change VM profiler frequency in rumtime. Jira HYP-19279 Signed-off-by: Vishnu Reddy Mandalapu <vmandalapu@nvidia.com> Change-Id: I2b260fff61addbd5e2bd53d9b16e441506bdf2d6 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3222316 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3252176 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Daniel Kudrow <dkudrow@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Alexey Lugovskoy <alugovskoy@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
8237e3463b
commit
09bf300e40
@@ -512,8 +512,7 @@ __attribute__((no_sanitize_address)) static __attribute__((always_inline)) inlin
|
||||
|
||||
__attribute__((no_sanitize_address)) static inline int hyp_trace_get_mask(uint64_t *value)
|
||||
{
|
||||
uint64_t args[4] = { 0U, 0U, 0U, 0U };
|
||||
|
||||
uint64_t args[4] = { *value, 0U, 0U, 0U };
|
||||
hyp_call44(HVC_NR_TRACE_GET_EVENT_MASK, args);
|
||||
if (args[0] == 0U)
|
||||
*value = args[1];
|
||||
@@ -521,10 +520,9 @@ __attribute__((no_sanitize_address)) static inline int hyp_trace_get_mask(uint64
|
||||
return (int) args[0];
|
||||
}
|
||||
|
||||
__attribute__((no_sanitize_address)) static inline int hyp_trace_set_mask(uint64_t mask)
|
||||
__attribute__((no_sanitize_address)) static inline int hyp_trace_set_mask(uint64_t type, uint64_t value)
|
||||
{
|
||||
uint64_t args[4] = { mask, 0U, 0U, 0U };
|
||||
|
||||
uint64_t args[4] = { type, value, 0U, 0U};
|
||||
hyp_call44(HVC_NR_TRACE_SET_EVENT_MASK, args);
|
||||
return (int) args[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user