ftrace/selftests: Add softlink to latest log directory
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 8 Sep 2023 22:17:21 +0000 (18:17 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 11 Sep 2023 23:06:40 +0000 (17:06 -0600)
commit7dc1e125f07aeeb8b6eacfd9a05ef3ef6fe539c7
tree55e96db235b21ba7ef6c6eeea11581480ab327da
parenta06023a8f78d3e9e73ca4363ccf3871a06e16ecc
ftrace/selftests: Add softlink to latest log directory

When I'm debugging something with the ftrace selftests and need to look at
the logs, it becomes tedious that I need to do the following:

 ls -ltr logs
 [ copy the last directory ]
 ls logs/<paste-last-dir>

to see where the logs are.

Instead, do the common practice of having a "latest" softlink to the last
run selftest. This way after running the selftest I only need to do:

 ls logs/latest/

and it will always give me the directory of the last run selftest logs!

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/ftracetest