summaryrefslogtreecommitdiff
path: root/drivers/misc/tegra-profiler/debug.c
diff options
context:
space:
mode:
authorIgor Nabirushkin <inabirushkin@nvidia.com>2014-12-29 12:16:30 +0400
committerWinnie Hsu <whsu@nvidia.com>2015-01-29 22:05:27 -0800
commitc017b032a284d7cb1974f7e80a6c3613089b9c0e (patch)
tree1f9d6e50d2332f315749bd5d765de1561c1d755c /drivers/misc/tegra-profiler/debug.c
parent6d956bb7ac0872a090b92d4ed4c842edf3c46963 (diff)
misc: tegra-profiler: fix debug preempt warningstegra-l4t-r21.3tegra-l4t-r21-er-2015-02-02
Tegra Profiler: fix warnings with CONFIG_DEBUG_PREEMPT=y * Add the missing preempt_disable/enable() pairs in start/stop ioctls. * Untie mmap and some other samples from the current cpu. Bug 200067410 Bug 1598009 Change-Id: I9f03facf3a0ecee20432019ea8094a349c7897d1 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/668123 (cherry picked from commit ee3374eb9983d1ccadbf3a54c977d3e6db97ec4a) Reviewed-on: http://git-master/r/672042 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/misc/tegra-profiler/debug.c')
-rw-r--r--drivers/misc/tegra-profiler/debug.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/misc/tegra-profiler/debug.c b/drivers/misc/tegra-profiler/debug.c
index b7acd9499934..50c3d1d6c041 100644
--- a/drivers/misc/tegra-profiler/debug.c
+++ b/drivers/misc/tegra-profiler/debug.c
@@ -1,7 +1,7 @@
/*
* drivers/misc/tegra-profiler/debug.c
*
- * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2015, 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,
@@ -68,7 +68,7 @@ void qm_debug_handler_sample(struct pt_regs *regs)
s->type = QM_DEBUG_SAMPLE_TYPE_TIMER_HANDLE;
- quadd_put_sample(&record, NULL, 0);
+ quadd_put_sample_this_cpu(&record, NULL, 0);
}
void qm_debug_timer_forward(struct pt_regs *regs, u64 period)
@@ -80,7 +80,7 @@ void qm_debug_timer_forward(struct pt_regs *regs, u64 period)
s->type = QM_DEBUG_SAMPLE_TYPE_TIMER_FORWARD;
- quadd_put_sample(&record, NULL, 0);
+ quadd_put_sample_this_cpu(&record, NULL, 0);
}
void qm_debug_timer_start(struct pt_regs *regs, u64 period)
@@ -92,7 +92,7 @@ void qm_debug_timer_start(struct pt_regs *regs, u64 period)
s->type = QM_DEBUG_SAMPLE_TYPE_TIMER_START;
- quadd_put_sample(&record, NULL, 0);
+ quadd_put_sample_this_cpu(&record, NULL, 0);
}
void qm_debug_timer_cancel(void)
@@ -104,7 +104,7 @@ void qm_debug_timer_cancel(void)
s->type = QM_DEBUG_SAMPLE_TYPE_TIMER_CANCEL;
- quadd_put_sample(&record, NULL, 0);
+ quadd_put_sample_this_cpu(&record, NULL, 0);
}
void
@@ -124,7 +124,7 @@ qm_debug_task_sched_in(pid_t prev_pid, pid_t current_pid, int prev_nr_active)
vec.base = &prev_nr_active;
vec.len = s->extra_length = sizeof(prev_nr_active);
- quadd_put_sample(&record, &vec, 1);
+ quadd_put_sample_this_cpu(&record, &vec, 1);
}
void qm_debug_read_counter(int event_id, u32 prev_val, u32 val)
@@ -143,7 +143,7 @@ void qm_debug_read_counter(int event_id, u32 prev_val, u32 val)
vec.base = &val;
vec.len = s->extra_length = sizeof(val);
- quadd_put_sample(&record, &vec, 1);
+ quadd_put_sample_this_cpu(&record, &vec, 1);
}
void qm_debug_start_source(int source_type)
@@ -156,7 +156,7 @@ void qm_debug_start_source(int source_type)
s->type = QM_DEBUG_SAMPLE_TYPE_SOURCE_START;
s->extra_value[0] = source_type;
- quadd_put_sample(&record, NULL, 0);
+ quadd_put_sample_this_cpu(&record, NULL, 0);
}
void qm_debug_stop_source(int source_type)
@@ -169,7 +169,7 @@ void qm_debug_stop_source(int source_type)
s->type = QM_DEBUG_SAMPLE_TYPE_SOURCE_STOP;
s->extra_value[0] = source_type;
- quadd_put_sample(&record, NULL, 0);
+ quadd_put_sample_this_cpu(&record, NULL, 0);
}
#endif /* QM_DEBUG_SAMPLES_ENABLE */