summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIgor Nabirushkin <inabirushkin@nvidia.com>2013-10-05 01:35:23 +0400
committerRiham Haidar <rhaidar@nvidia.com>2013-10-10 19:28:35 -0700
commit9cdf6b4fdb5cf30267a62f8b795eb83ea06d5637 (patch)
tree9ac7b50713edbb1c44032211ebabe3ef8d798cbf /include
parent5d0f7164f4b3e7690cc174fdeb4873453d3e99f0 (diff)
misc: tegra-profiler: kprobes is no longer used
Tegra Profiler: kprobes is no longer used Use callbacks from the scheduler instead of kprobes Bug 1343930 Change-Id: I67589dbe972cc5c853addfb6ed82c488529eed55 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/281941 Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com> Reviewed-by: Eric Miao <emiao@nvidia.com> Tested-by: Eric Miao <emiao@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/tegra_profiler.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h
index e8f17ad75792..5840ba3a8824 100644
--- a/include/linux/tegra_profiler.h
+++ b/include/linux/tegra_profiler.h
@@ -305,4 +305,33 @@ struct quadd_module_version {
#pragma pack(pop)
+#ifdef CONFIG_TEGRA_PROFILER
+extern void __quadd_task_sched_in(struct task_struct *prev,
+ struct task_struct *task);
+extern void __quadd_task_sched_out(struct task_struct *prev,
+ struct task_struct *next);
+
+static inline void quadd_task_sched_in(struct task_struct *prev,
+ struct task_struct *task)
+{
+ __quadd_task_sched_in(prev, task);
+}
+
+static inline void quadd_task_sched_out(struct task_struct *prev,
+ struct task_struct *next)
+{
+ __quadd_task_sched_out(prev, next);
+}
+#else
+static inline void quadd_task_sched_in(struct task_struct *prev,
+ struct task_struct *task)
+{
+}
+
+static inline void quadd_task_sched_out(struct task_struct *prev,
+ struct task_struct *next)
+{
+}
+#endif
+
#endif /* __TEGRA_PROFILER_H */