Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tracing: Use init_utsname()->release

Instead of using UTS_RELEASE, use init_utsname()->release, which means that
we don't need to rebuild the code just for the git head commit changing.

Link: https://lore.kernel.org/linux-trace-kernel/20240222124639.65629-1-john.g.garry@oracle.com

Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

John Garry and committed by
Steven Rostedt (Google)
ed896837 3727db1c

+2 -2
+2 -2
kernel/trace/trace.c
··· 13 13 * Copyright (C) 2004 Nadia Yvette Chambers 14 14 */ 15 15 #include <linux/ring_buffer.h> 16 - #include <generated/utsrelease.h> 16 + #include <linux/utsname.h> 17 17 #include <linux/stacktrace.h> 18 18 #include <linux/writeback.h> 19 19 #include <linux/kallsyms.h> ··· 4148 4148 get_total_entries(buf, &total, &entries); 4149 4149 4150 4150 seq_printf(m, "# %s latency trace v1.1.5 on %s\n", 4151 - name, UTS_RELEASE); 4151 + name, init_utsname()->release); 4152 4152 seq_puts(m, "# -----------------------------------" 4153 4153 "---------------------------------\n"); 4154 4154 seq_printf(m, "# latency: %lu us, #%lu/%lu, CPU#%d |"