diff options
author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2014-01-27 03:13:33 +0400 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2014-02-12 20:46:52 -0800 |
commit | 6c4eaeece04690ea442d3c4b6cd74d6fa9ae121e (patch) | |
tree | 0719283407cc1dc1c37a2ebf906621ef99768d53 /include | |
parent | 868545a99d8385a850fc87a4ad97dc8fb44a6e76 (diff) |
misc: tegra-profiler: use mmap calls
Tegra Profiler: add mmap calls
Bug 1447662
Change-Id: I96614ab3c320fd028cf861ea970b5199bdcae1c7
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365889
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_profiler.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h index 28924f51eaf8..fd9a2b63946e 100644 --- a/include/linux/tegra_profiler.h +++ b/include/linux/tegra_profiler.h @@ -351,12 +351,19 @@ struct quadd_module_version { #pragma pack(pop) +#ifdef __KERNEL__ + +struct task_struct; +struct vm_area_struct; + #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); +extern void __quadd_event_mmap(struct vm_area_struct *vma); + static inline void quadd_task_sched_in(struct task_struct *prev, struct task_struct *task) { @@ -368,7 +375,14 @@ static inline void quadd_task_sched_out(struct task_struct *prev, { __quadd_task_sched_out(prev, next); } -#else + +static inline void quadd_event_mmap(struct vm_area_struct *vma) +{ + __quadd_event_mmap(vma); +} + +#else /* CONFIG_TEGRA_PROFILER */ + static inline void quadd_task_sched_in(struct task_struct *prev, struct task_struct *task) { @@ -378,6 +392,13 @@ static inline void quadd_task_sched_out(struct task_struct *prev, struct task_struct *next) { } -#endif + +static inline void quadd_event_mmap(struct vm_area_struct *vma) +{ +} + +#endif /* CONFIG_TEGRA_PROFILER */ + +#endif /* __KERNEL__ */ #endif /* __TEGRA_PROFILER_H */ |