From 68303a6bdeb9ac5fd193941b61dc8a2246d014d3 Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Mon, 25 Feb 2019 14:52:32 +0300 Subject: 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 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 Reviewed-by: Bibek Basu Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_profiler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/linux') 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, extern void __quadd_event_mmap(struct vm_area_struct *vma); extern void __quadd_event_fork(struct task_struct *task); extern void __quadd_event_exit(struct task_struct *task); +extern void __quadd_event_comm(struct task_struct *task, bool exec); static inline void quadd_task_sched_in(struct task_struct *prev, struct task_struct *task) @@ -59,6 +60,11 @@ static inline void quadd_event_exit(struct task_struct *task) __quadd_event_exit(task); } +static inline void quadd_event_comm(struct task_struct *task, bool exec) +{ + __quadd_event_comm(task, exec); +} + #else /* CONFIG_TEGRA_PROFILER */ static inline void quadd_task_sched_in(struct task_struct *prev, @@ -83,6 +89,10 @@ static inline void quadd_event_exit(struct task_struct *task) { } +static inline void quadd_event_comm(struct task_struct *task, bool exec) +{ +} + #endif /* CONFIG_TEGRA_PROFILER */ #endif /* __TEGRA_PROFILER_H */ -- cgit v1.2.2