The patch titled Subject: kernel/latencytop.c: rename clear_all_latency_tracing to clear_tsk_latency_tracing has been added to the -mm tree. Its filename is kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Lin Feng <linf@xxxxxxxxxx> Subject: kernel/latencytop.c: rename clear_all_latency_tracing to clear_tsk_latency_tracing The name clear_all_latency_tracing is misleading, in fact which only clear per task's latency_record[], and we do have another function named clear_global_latency_tracing which clear the global latency_record[] buffer. Link: http://lkml.kernel.org/r/20190226114602.16902-1-linf@xxxxxxxxxx Signed-off-by: Lin Feng <linf@xxxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Fabian Frederick <fabf@xxxxxxxxx> Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/base.c | 2 +- include/linux/latencytop.h | 4 ++-- kernel/fork.c | 2 +- kernel/latencytop.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) --- a/fs/proc/base.c~kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing +++ a/fs/proc/base.c @@ -515,7 +515,7 @@ static ssize_t lstats_write(struct file if (!task) return -ESRCH; - clear_all_latency_tracing(task); + clear_tsk_latency_tracing(task); put_task_struct(task); return count; --- a/include/linux/latencytop.h~kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing +++ a/include/linux/latencytop.h @@ -36,7 +36,7 @@ account_scheduler_latency(struct task_st __account_scheduler_latency(task, usecs, inter); } -void clear_all_latency_tracing(struct task_struct *p); +void clear_tsk_latency_tracing(struct task_struct *p); extern int sysctl_latencytop(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); @@ -48,7 +48,7 @@ account_scheduler_latency(struct task_st { } -static inline void clear_all_latency_tracing(struct task_struct *p) +static inline void clear_tsk_latency_tracing(struct task_struct *p) { } --- a/kernel/fork.c~kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing +++ a/kernel/fork.c @@ -1963,7 +1963,7 @@ static __latent_entropy struct task_stru #ifdef TIF_SYSCALL_EMU clear_tsk_thread_flag(p, TIF_SYSCALL_EMU); #endif - clear_all_latency_tracing(p); + clear_tsk_latency_tracing(p); /* ok, now we should be set up.. */ p->pid = pid_nr(pid); --- a/kernel/latencytop.c~kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing +++ a/kernel/latencytop.c @@ -67,7 +67,7 @@ static struct latency_record latency_rec int latencytop_enabled; -void clear_all_latency_tracing(struct task_struct *p) +void clear_tsk_latency_tracing(struct task_struct *p) { unsigned long flags; _ Patches currently in -mm which might be from linf@xxxxxxxxxx are kernel-latencytopc-rename-clear_all_latency_tracing-to-clear_tsk_latency_tracing.patch kernel-latencytopc-remove-unnecessary-checks-for-latencytop_enabled.patch