rv: Add scpd, snep and sncid per-cpu monitorsAdd 3 per-cpu monitors as part of the sched model:* scpd: schedule called with preemption disabled Monitor to ensure schedule is called with preem
rv: Add scpd, snep and sncid per-cpu monitorsAdd 3 per-cpu monitors as part of the sched model:* scpd: schedule called with preemption disabled Monitor to ensure schedule is called with preemption disabled* snep: schedule does not enable preempt Monitor to ensure schedule does not enable preempt* sncid: schedule not called with interrupt disabled Monitor to ensure schedule is not called with interrupt disabledTo: Ingo Molnar <mingo@redhat.com>To: Peter Zijlstra <peterz@infradead.org>Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Ingo Molnar <mingo@redhat.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: John Kacur <jkacur@redhat.com>Cc: Clark Williams <williams@redhat.com>Link: https://lore.kernel.org/20250305140406.350227-6-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
show more ...
rv: Add snroc per-task monitorAdd a per-task monitor as part of the sched model:* snroc: set non runnable on its own context Monitor to ensure set_state happens only in the respective task's
rv: Add snroc per-task monitorAdd a per-task monitor as part of the sched model:* snroc: set non runnable on its own context Monitor to ensure set_state happens only in the respective task's contextTo: Ingo Molnar <mingo@redhat.com>To: Peter Zijlstra <peterz@infradead.org>Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Ingo Molnar <mingo@redhat.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: John Kacur <jkacur@redhat.com>Cc: Clark Williams <williams@redhat.com>Link: https://lore.kernel.org/20250305140406.350227-5-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
rv: Add sco and tss per-cpu monitorsAdd 2 per-cpu monitors as part of the sched model:* sco: scheduling context operations Monitor to ensure sched_set_state happens only in thread context* t
rv: Add sco and tss per-cpu monitorsAdd 2 per-cpu monitors as part of the sched model:* sco: scheduling context operations Monitor to ensure sched_set_state happens only in thread context* tss: task switch while scheduling Monitor to ensure sched_switch happens only in scheduling contextTo: Ingo Molnar <mingo@redhat.com>To: Peter Zijlstra <peterz@infradead.org>Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Ingo Molnar <mingo@redhat.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: John Kacur <jkacur@redhat.com>Cc: Clark Williams <williams@redhat.com>Link: https://lore.kernel.org/20250305140406.350227-4-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
sched: Add sched tracepoints for RV task modelAdd the following tracepoints:* sched_entry(bool preempt, ip) Called while entering __schedule* sched_exit(bool is_switch, ip) Called while e
sched: Add sched tracepoints for RV task modelAdd the following tracepoints:* sched_entry(bool preempt, ip) Called while entering __schedule* sched_exit(bool is_switch, ip) Called while exiting __schedule* sched_set_state(task, curr_state, state) Called when a task changes its state (to and from running)These tracepoints are useful to describe the Linux task model and areadapted from the patches by Daniel Bristot de Oliveira(https://bristot.me/linux-task-model/).Cc: Ingo Molnar <mingo@redhat.com>Cc: Masami Hiramatsu <mhiramat@kernel.org>Cc: Juri Lelli <juri.lelli@redhat.com>Link: https://lore.kernel.org/20250305140406.350227-2-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/rv: Keep user LDFLAGS in buildrv, unlike rtla and perf, drops LDFLAGS supplied by the user and honorsonly EXTRA_LDFLAGS. This is inconsistent with both perf and rtla andcan lead to all kind
tools/rv: Keep user LDFLAGS in buildrv, unlike rtla and perf, drops LDFLAGS supplied by the user and honorsonly EXTRA_LDFLAGS. This is inconsistent with both perf and rtla andcan lead to all kinds of unexpected behavior.For example, on Fedora and RHEL, it causes rv to be build withoutPIE, unlike the aforementioned perf and rtla:$ file /usr/bin/{rv,rtla,perf}/usr/bin/rv: ELF 64-bit LSB executable, .../usr/bin/rtla: ELF 64-bit LSB pie executable, .../usr/bin/perf: ELF 64-bit LSB pie executable, ...Keep both LDFLAGS and EXTRA_LDFLAGS for the build.Cc: John Kacur <jkacur@redhat.com>Cc: Luis Goncalves <lgoncalv@redhat.com>Cc: Gabriele Monaco <gmonaco@redhat.com>Link: https://lore.kernel.org/20250304142228.767658-1-tglozar@redhat.comFixes: 012e4e77df73 ("tools/verification: Use tools/build makefiles on rv")Signed-off-by: Tomas Glozar <tglozar@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
rv: Add license identifiers to monitor filesSome monitor files like the main header and the Kconfig are missing thelicense identifier.Add it to those and make sure the automatic generation scrip
rv: Add license identifiers to monitor filesSome monitor files like the main header and the Kconfig are missing thelicense identifier.Add it to those and make sure the automatic generation script includesthe line in newly created monitors.Cc: Masami Hiramatsu <mhiramat@kernel.org>Cc: Ingo Molnar <mingo@redhat.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Juri Lelli <juri.lelli@redhat.com>Link: https://lore.kernel.org/20250218123121.253551-3-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Merge tag 'perf-tools-fixes-for-v6.14-2-2025-02-25' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-toolsPull perf tools fixes from Arnaldo Carvalho de Melo: - Fix tools/ quiet build M
Merge tag 'perf-tools-fixes-for-v6.14-2-2025-02-25' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-toolsPull perf tools fixes from Arnaldo Carvalho de Melo: - Fix tools/ quiet build Makefile infrastructure that was broken when working on tools/perf/ without testing on other tools/ living utilities.* tag 'perf-tools-fixes-for-v6.14-2-2025-02-25' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools: tools: Remove redundant quiet setup tools: Unify top-level quiet infrastructure
tools: Remove redundant quiet setupQ is exported from Makefile.include so it is not necessary to manuallyset it.Reviewed-by: Jiri Olsa <jolsa@kernel.org>Signed-off-by: Charlie Jenkins <charlie@
tools: Remove redundant quiet setupQ is exported from Makefile.include so it is not necessary to manuallyset it.Reviewed-by: Jiri Olsa <jolsa@kernel.org>Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>Acked-by: Andrii Nakryiko <andrii@kernel.org>Acked-by: Quentin Monnet <qmo@kernel.org>Cc: Adrian Hunter <adrian.hunter@intel.com>Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>Cc: Alexei Starovoitov <ast@kernel.org>Cc: Benjamin Tissoires <bentiss@kernel.org>Cc: Daniel Borkmann <daniel@iogearbox.net>Cc: Daniel Lezcano <daniel.lezcano@linaro.org>Cc: Eduard Zingerman <eddyz87@gmail.com>Cc: Hao Luo <haoluo@google.com>Cc: Ian Rogers <irogers@google.com>Cc: Ingo Molnar <mingo@redhat.com>Cc: Jiri Kosina <jikos@kernel.org>Cc: John Fastabend <john.fastabend@gmail.com>Cc: Josh Poimboeuf <jpoimboe@kernel.org>Cc: KP Singh <kpsingh@kernel.org>Cc: Lukasz Luba <lukasz.luba@arm.com>Cc: Mark Rutland <mark.rutland@arm.com>Cc: Martin KaFai Lau <martin.lau@linux.dev>Cc: Mykola Lysenko <mykolal@fb.com>Cc: Namhyung Kim <namhyung@kernel.org>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Rafael J. Wysocki <rafael@kernel.org>Cc: Shuah Khan <shuah@kernel.org>Cc: Song Liu <song@kernel.org>Cc: Stanislav Fomichev <sdf@google.com>Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>Cc: Yonghong Song <yonghong.song@linux.dev>Cc: Zhang Rui <rui.zhang@intel.com>Link: https://lore.kernel.org/r/20250213-quiet_tools-v3-2-07de4482a581@rivosinc.comSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
verification/dot2k: Implement event type detectionCurrently dot2k treats all events equally and registers them with ageneral da_handle_event. This is however just part of the work becausesome eve
verification/dot2k: Implement event type detectionCurrently dot2k treats all events equally and registers them with ageneral da_handle_event. This is however just part of the work becausesome events are necessary to understand when the monitor is entering theinitial state.Specifically, the da_handle_start_event takes care of setting themonitor in the initial state and da_handle_start_run_event alsoregisters the current event in the newly enabled monitor.da_handle_start_event can be used on events that only lead to theinitial state (as it is currently done in the example monitors), whileda_handle_start_run_event could be used on events that are only validfrom the initial one.Failing to set at least one of those functions to handle events makesthe monitor useless, since it will never be activated.This patch adapts dot2k to parse the events that surely lead to theinitial state and set da_handle_start_event for those, if no such eventis found but some events are only valid in the initial event, we insteadset da_handle_start_run_event (it isn't necessary to set both).We still add a comment to warn the user to make sure this change ismatching the model definition.Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-9-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2k: Auto patch current kernel sourcedot2k suggests a list of changes to the kernel tree while adding amonitor: edit tracepoints header, Makefile, Kconfig and moving themonitor fol
verification/dot2k: Auto patch current kernel sourcedot2k suggests a list of changes to the kernel tree while adding amonitor: edit tracepoints header, Makefile, Kconfig and moving themonitor folder. Those changes can be easily run automatically.Add a flag to dot2k to alter the kernel source.The kernel source directory can be either assumed from the PWD, or fromthe running kernel, if installed.This feature works best if the kernel tree is a git repository, so thatits easier to make sure there are no unintended changes.The main RV files (e.g. Makefile) have now a comment placeholder thatcan be useful for manual editing (e.g. to know where to add newmonitors) and it is used by the script to append the required lines.We also slightly adapt the file handling functions in dot2k: __open_fileis now called __read_file and also closes the file before returning thecontent; __create_file is now a more general __write_file, we no longerreturn on FileExistsError (not thrown while opening), a new__create_file simply calls __write_file specifying the monitor folder inthe path.Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-8-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2k: Simplify manual steps in monitor creationThis patch reduces and simplifies the manual steps still needed increating a new RV monitor.It extends the dot2k script to create a t
verification/dot2k: Simplify manual steps in monitor creationThis patch reduces and simplifies the manual steps still needed increating a new RV monitor.It extends the dot2k script to create a tracepoint snippet and aKconfig file for the newly generated monitor. Those files can be keptin the monitor's directory but shall be included in the main tracepointheader and Kconfig.Together with the checklist, dot2k now suggests the lines to add tothose files for inclusion and the Makefile line to compile the newmonitor: Writing the monitor into the directory monitor_name Almost done, checklist - Edit the monitor_name/monitor_name.c to add the instrumentation - Edit kernel/trace/rv/rv_trace.h: Add this line where other tracepoints are included and DA_MON_EVENTS_ID is defined: #include <monitors/monitor_name/monitor_name_trace.h> - Edit kernel/trace/rv/Makefile: Add this line where other monitors are included: obj-$(CONFIG_RV_MON_MONITOR_NAME) += monitors/monitor_name/monitor_name.o - Edit kernel/trace/rv/Kconfig: Add this line where other monitors are included: source "kernel/trace/rv/monitors/monitor_name/Kconfig" - Move monitor_name/ to the kernel's monitor directory (kernel/trace/rv/monitors)Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-7-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2k: Add support for name and description optionsThe dot2k command includes options to set a model name with -n and adescription with -D, however those are not used in practice.Th
verification/dot2k: Add support for name and description optionsThe dot2k command includes options to set a model name with -n and adescription with -D, however those are not used in practice.This patch allows to specify a custom model name (by default the name ofthe dot file without extension) and a description which overrides theone in the C file.Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-5-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2k: More robust template variablesThe dot2k templates currently have variables that are automaticallyfilled by the script marked as an uppercase VARIABLE. This requires somecare w
verification/dot2k: More robust template variablesThe dot2k templates currently have variables that are automaticallyfilled by the script marked as an uppercase VARIABLE. This requires somecare while adding new variables to avoid using valid keywords and getthem unexpectedly substituted.This patch switches the variables to the %%VARIABLE%% notation to makethe pattern substitution more robust.Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-4-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2k: Unify main.c templatesdot2k has 3 templates, one per monitor type, but the only differenceamong them is the `DECLARE_DA_MON_*` call, keeping 3 almost identicaltemplates requir
verification/dot2k: Unify main.c templatesdot2k has 3 templates, one per monitor type, but the only differenceamong them is the `DECLARE_DA_MON_*` call, keeping 3 almost identicaltemplates requires more work whenever we introduce a change.This patch removes the 3 dot2k templates and replaces them with ageneric one, we then adjust the model type from the script.Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-3-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2k: Fix template directory detectiondot2k can be run as installed (e.g. make install) or from the kerneltree. In the former case it looks for templates in a known location; inthe
verification/dot2k: Fix template directory detectiondot2k can be run as installed (e.g. make install) or from the kerneltree. In the former case it looks for templates in a known location; inthe latter, the PWD has to be `<linux>/tools/verification` to properlyimport python modules. The current version looks for the templatein a wrong directory in this latter case.This patch adjusts the directory where dot2k looks for templates if runfrom the kernel tree (i.e. not installed).Additionally we fix a few simple pylint warnings in boolean expressions.Cc: Juri Lelli <juri.lelli@redhat.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: John Kacur <jkacur@redhat.com>Link: https://lore.kernel.org/20241227144752.362911-2-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
verification/dot2: Improve dot parser robustnessThis patch makes the dot parser used by dot2c and dot2k slightly morerobust, namely:* allows parsing files with the gv extension (GraphViz)* corre
verification/dot2: Improve dot parser robustnessThis patch makes the dot parser used by dot2c and dot2k slightly morerobust, namely:* allows parsing files with the gv extension (GraphViz)* correctly parses edges with any indentation * used to work only with a single character (e.g. '\t')Additionally it fixes a couple of warnings reported by pylint such aswrong indentation and comparison to False instead of `not ...`Link: https://lore.kernel.org/20241017064238.41394-2-gmonaco@redhat.comSigned-off-by: Gabriele Monaco <gmonaco@redhat.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/rv: Correct the grammatical errors in the commentsThe word "trace" begins with a consonant sound,so "a" should be used instead of "an".Link: https://lore.kernel.org/20240903003019.8969-1-b
tools/rv: Correct the grammatical errors in the commentsThe word "trace" begins with a consonant sound,so "a" should be used instead of "an".Link: https://lore.kernel.org/20240903003019.8969-1-bajing@cmss.chinamobile.comSigned-off-by: Ba Jing <bajing@cmss.chinamobile.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/rv: Correct the grammatical errors in the commentsThe form of "print" should be consistent with "parses".Link: https://lore.kernel.org/20240902233408.8684-1-bajing@cmss.chinamobile.comSign
tools/rv: Correct the grammatical errors in the commentsThe form of "print" should be consistent with "parses".Link: https://lore.kernel.org/20240902233408.8684-1-bajing@cmss.chinamobile.comSigned-off-by: Ba Jing <bajing@cmss.chinamobile.com>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/verification: Use pkg-config in lib_setup of Makefile.configThis allows to build against libtraceevent and libtracefs installedin non-standard locations.Signed-off-by: Guilherme Amadio <am
tools/verification: Use pkg-config in lib_setup of Makefile.configThis allows to build against libtraceevent and libtracefs installedin non-standard locations.Signed-off-by: Guilherme Amadio <amadio@gentoo.org>Tested-by: Thorsten Leemhuis <linux@leemhuis.info>Tested-by: Leo Yan <leo.yan@arm.com>Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>Link: https://lore.kernel.org/r/20240712194511.3973899-4-amadio@gentoo.orgSigned-off-by: Namhyung Kim <namhyung@kernel.org>
tools/verification: Use tools/build makefiles on rvUse tools/build/ makefiles to build rv, inheriting the benefits ofit. For example, having a proper way to handle dependencies.Link: https://lkm
tools/verification: Use tools/build makefiles on rvUse tools/build/ makefiles to build rv, inheriting the benefits ofit. For example, having a proper way to handle dependencies.Link: https://lkml.kernel.org/r/2a38a8f7b8dc65fa790381ec9ab42fb62beb2e25.1710519524.git.bristot@kernel.orgCc: Arnaldo Carvalho de Melo <acme@redhat.com>Cc: Josh Poimboeuf <jpoimboe@kernel.org>Cc: John Kacur <jkacur@redhat.com>Cc: Namhyung Kim <namhyung@kernel.org>Cc: Jiri Olsa <jolsa@kernel.org>Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
tools/rv: Fix curr_reactor uninitialized variableclang is reporting:$ make HOSTCC=clang CC=clang LLVM_IAS=1clang -O -g -DVERSION=\"6.8.0-rc3\" -flto=auto -fexceptions -fstack-protector-strong
tools/rv: Fix curr_reactor uninitialized variableclang is reporting:$ make HOSTCC=clang CC=clang LLVM_IAS=1clang -O -g -DVERSION=\"6.8.0-rc3\" -flto=auto -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS $(pkg-config --cflags libtracefs) -I include -c -o src/in_kernel.o src/in_kernel.c[...]src/in_kernel.c:227:6: warning: variable 'curr_reactor' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 227 | if (!end) | ^~~~src/in_kernel.c:242:9: note: uninitialized use occurs here 242 | return curr_reactor; | ^~~~~~~~~~~~src/in_kernel.c:227:2: note: remove the 'if' if its condition is always false 227 | if (!end) | ^~~~~~~~~ 228 | goto out_free; | ~~~~~~~~~~~~~src/in_kernel.c:221:6: warning: variable 'curr_reactor' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 221 | if (!start) | ^~~~~~src/in_kernel.c:242:9: note: uninitialized use occurs here 242 | return curr_reactor; | ^~~~~~~~~~~~src/in_kernel.c:221:2: note: remove the 'if' if its condition is always false 221 | if (!start) | ^~~~~~~~~~~ 222 | goto out_free; | ~~~~~~~~~~~~~src/in_kernel.c:215:20: note: initialize the variable 'curr_reactor' to silence this warning 215 | char *curr_reactor; | ^ | = NULL2 warnings generated.Which is correct. Setting curr_reactor to NULL avoids the problem.Link: https://lkml.kernel.org/r/3a35551149e5ee0cb0950035afcb8082c3b5d05b.1707217097.git.bristot@kernel.orgCc: stable@vger.kernel.orgCc: Masami Hiramatsu <mhiramat@kernel.org>Cc: Nathan Chancellor <nathan@kernel.org>Cc: Nick Desaulniers <ndesaulniers@google.com>Cc: Bill Wendling <morbo@google.com>Cc: Justin Stitt <justinstitt@google.com>Cc: Donald Zickus <dzickus@redhat.com>Fixes: 6d60f89691fc ("tools/rv: Add in-kernel monitor interface")Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
tools/rv: Fix Makefile compiler options for clangThe following errors are showing up when compiling rv with clang: $ make HOSTCC=clang CC=clang LLVM_IAS=1 [...] clang -O -g -DVERSION=\"6.8.0-r
tools/rv: Fix Makefile compiler options for clangThe following errors are showing up when compiling rv with clang: $ make HOSTCC=clang CC=clang LLVM_IAS=1 [...] clang -O -g -DVERSION=\"6.8.0-rc1\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -I include -c -o src/utils.o src/utils.c clang: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument] warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] 1 warning generated. clang -o rv -ggdb src/in_kernel.o src/rv.o src/trace.o src/utils.o $(pkg-config --libs libtracefs) src/in_kernel.o: file not recognized: file format not recognized clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Makefile:110: rv] Error 1Solve these issues by: - removing -ffat-lto-objects and -Wno-maybe-uninitialized if using clang - informing the linker about -flto=autoLink: https://lkml.kernel.org/r/ed94a8ddc2ca8c8ef663cfb7ae9dd196c4a66b33.1707217097.git.bristot@kernel.orgCc: stable@vger.kernel.orgCc: Masami Hiramatsu <mhiramat@kernel.org>Cc: Nathan Chancellor <nathan@kernel.org>Cc: Nick Desaulniers <ndesaulniers@google.com>Cc: Bill Wendling <morbo@google.com>Cc: Justin Stitt <justinstitt@google.com>Fixes: 4bc4b131d44c ("rv: Add rv tool")Suggested-by: Donald Zickus <dzickus@redhat.com>Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
verification/dot2k: Delete duplicate importsThe presence of duplicate import lines appears to be a typo.Removing them.Link: https://lore.kernel.org/r/20230906155703.3917918-1-alessandro.carminat
verification/dot2k: Delete duplicate importsThe presence of duplicate import lines appears to be a typo.Removing them.Link: https://lore.kernel.org/r/20230906155703.3917918-1-alessandro.carminati@gmail.comFixes: 24bce201d798 ("tools/rv: Add dot2k")Signed-off-by: Alessandro Carminati (Red Hat) <alessandro.carminati@gmail.com>Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
rv: Fix addition on an uninitialized variable 'run'The variable run is not initialized however it is being accumulatedby the return value from the call to ikm_run_monitor. Fix this byinitializin
rv: Fix addition on an uninitialized variable 'run'The variable run is not initialized however it is being accumulatedby the return value from the call to ikm_run_monitor. Fix this byinitializing run to zero at the start of the function.Link: https://lkml.kernel.org/r/20230424094730.105313-1-colin.i.king@gmail.comFixes: 4bc4b131d44c ("rv: Add rv tool")Signed-off-by: Colin Ian King <colin.i.king@gmail.com>Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/rv: Remove unneeded semicolonThe semicolon after the "}" is unneeded.Link: https://lore.kernel.org/linux-trace-devel/202212191431057948891@zte.com.cnSigned-off-by: zhang songyi <zhang.son
tools/rv: Remove unneeded semicolonThe semicolon after the "}" is unneeded.Link: https://lore.kernel.org/linux-trace-devel/202212191431057948891@zte.com.cnSigned-off-by: zhang songyi <zhang.songyi@zte.com.cn>Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
123