summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIgor Nabirushkin <inabirushkin@nvidia.com>2019-02-25 06:52:32 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2019-04-11 16:42:52 -0400
commit68303a6bdeb9ac5fd193941b61dc8a2246d014d3 (patch)
tree39745f520f96d6476e6cc1067f73a7e5adfb5c02 /include/linux
parent9d1f5e243d40759e6eaed6b2d03ae7559b9da600 (diff)
misc: tegra-profiler: add task comm events
Add task COMM events: - Add support for quadd_event_comm() callback. - Send task COMM events to userspace. Bug 2514095 Jira DTSP-2432 Change-Id: Id5b92f544497b69098e3b16bf82baf0f6abb77e1 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2027490 (cherry picked from commit a0c0d3bf9eeabbdad2a43b768235e1cc846b04ef) Reviewed-on: https://git-master.nvidia.com/r/2093405 GVS: Gerrit_Virtual_Submit Reviewed-by: Roman Rybalko <rrybalko@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra_profiler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h
index c55f25b57..edca37b25 100644
--- a/include/linux/tegra_profiler.h
+++ b/include/linux/tegra_profiler.h
@@ -31,6 +31,7 @@ extern void __quadd_task_sched_out(struct task_struct *prev,
31extern void __quadd_event_mmap(struct vm_area_struct *vma); 31extern void __quadd_event_mmap(struct vm_area_struct *vma);
32extern void __quadd_event_fork(struct task_struct *task); 32extern void __quadd_event_fork(struct task_struct *task);
33extern void __quadd_event_exit(struct task_struct *task); 33extern void __quadd_event_exit(struct task_struct *task);
34extern void __quadd_event_comm(struct task_struct *task, bool exec);
34 35
35static inline void quadd_task_sched_in(struct task_struct *prev, 36static inline void quadd_task_sched_in(struct task_struct *prev,
36 struct task_struct *task) 37 struct task_struct *task)
@@ -59,6 +60,11 @@ static inline void quadd_event_exit(struct task_struct *task)
59 __quadd_event_exit(task); 60 __quadd_event_exit(task);
60} 61}
61 62
63static inline void quadd_event_comm(struct task_struct *task, bool exec)
64{
65 __quadd_event_comm(task, exec);
66}
67
62#else /* CONFIG_TEGRA_PROFILER */ 68#else /* CONFIG_TEGRA_PROFILER */
63 69
64static inline void quadd_task_sched_in(struct task_struct *prev, 70static inline void quadd_task_sched_in(struct task_struct *prev,
@@ -83,6 +89,10 @@ static inline void quadd_event_exit(struct task_struct *task)
83{ 89{
84} 90}
85 91
92static inline void quadd_event_comm(struct task_struct *task, bool exec)
93{
94}
95
86#endif /* CONFIG_TEGRA_PROFILER */ 96#endif /* CONFIG_TEGRA_PROFILER */
87 97
88#endif /* __TEGRA_PROFILER_H */ 98#endif /* __TEGRA_PROFILER_H */