All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriele Monaco <gmonaco@redhat.com>
To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
	bpf@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>,
	Gabriele Monaco <gmonaco@redhat.com>
Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>,
	Nam Cao <namcao@linutronix.de>, Wen Yang <wen.yang@linux.dev>,
	Tobias Schaffner <tobias.schaffner@siemens.com>,
	Viktor Malik <vmalik@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	John Ogness <john.ogness@linutronix.de>
Subject: [PATCH v3 08/18] tools/rv: Move monitor trace handling to trace.c
Date: Thu, 26 Nov 2026 13:59:54 +0100	[thread overview]
Message-ID: <20261126130004.127155-9-gmonaco@redhat.com> (raw)
In-Reply-To: <20261126130004.127155-1-gmonaco@redhat.com>

Move the rv monitor tracing functions from in_kernel.c to trace.c so
it can be shared with other monitor backends, e.g. BPF monitors that
emit tracepoints.

No functional changes but minor simplifications:
- simplify ambiguous destruction path and use trace inst on stack
- more consistent argument order
- fix minor style issues

Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
---
 tools/verification/rv/include/trace.h |   4 +-
 tools/verification/rv/src/in_kernel.c | 295 +-------------------------
 tools/verification/rv/src/trace.c     | 290 +++++++++++++++++++++++--
 3 files changed, 280 insertions(+), 309 deletions(-)

diff --git a/tools/verification/rv/include/trace.h b/tools/verification/rv/include/trace.h
index 8d89e8c303fa..e3d65ff3d544 100644
--- a/tools/verification/rv/include/trace.h
+++ b/tools/verification/rv/include/trace.h
@@ -9,8 +9,10 @@ struct trace_instance {
 };
 
 int trace_instance_init(struct trace_instance *trace, char *name);
-int trace_instance_start(struct trace_instance *trace);
 void trace_instance_destroy(struct trace_instance *trace);
 
 int collect_registered_events(struct tep_event *event, struct tep_record *record,
 			      int cpu, void *context);
+
+void trace_print_header(struct trace_seq *s);
+int trace_instance_setup(struct trace_instance *inst, char *name);
diff --git a/tools/verification/rv/src/in_kernel.c b/tools/verification/rv/src/in_kernel.c
index 90c340a73c76..79f2d308e14d 100644
--- a/tools/verification/rv/src/in_kernel.c
+++ b/tools/verification/rv/src/in_kernel.c
@@ -9,7 +9,6 @@
 #include <string.h>
 #include <errno.h>
 #include <unistd.h>
-#include <dirent.h>
 
 #include <trace.h>
 #include <utils.h>
@@ -304,29 +303,6 @@ static char *ikm_get_current_reactor(char *monitor_name)
 	return curr_reactor;
 }
 
-static int ikm_has_id(char *monitor_name)
-{
-	char path[MAX_PATH];
-	char *format;
-	int has_id;
-
-	snprintf(path, MAX_PATH, "events/rv/event_%s/format", monitor_name);
-	format = tracefs_instance_file_read(NULL, path, NULL);
-	if (!format) {
-		err_msg("ikm: fail reading monitor's %s format event file\n", monitor_name);
-		return -1;
-	}
-
-	/* print fmt: "%d: %s x %s -> %s %s", REC->id, ... */
-	has_id = !!strstr(format, "REC->id");
-
-	debug_msg("ikm: monitor %s has id: %s\n", monitor_name, has_id ? "yes" : "no");
-
-	free(format);
-
-	return has_id;
-}
-
 /**
  * ikm_list_monitors - list all available monitors
  *
@@ -379,260 +355,6 @@ int ikm_list_monitors(char *container)
 	return 0;
 }
 
-static void ikm_print_header(struct trace_seq *s)
-{
-	trace_seq_printf(s, "%16s-%-8s %5s %5s ", "<TASK>", "PID", "[CPU]", "TYPE");
-	if (config.has_id)
-		trace_seq_printf(s, "%8s ", "ID");
-
-	trace_seq_printf(s, "%24s x %-24s -> %-24s %s\n",
-			 "STATE",
-			 "EVENT",
-			 "NEXT_STATE",
-			 "FINAL");
-
-	trace_seq_printf(s, "%16s %-8s %5s %5s ", " | ", " | ", " | ", " | ");
-
-	if (config.has_id)
-		trace_seq_printf(s, "%8s ", " | ");
-
-	trace_seq_printf(s, "%24s   %-24s    %-24s %s\n",
-			 " | ",
-			 " | ",
-			 " | ",
-			 "|");
-
-}
-
-/*
- * ikm_event_handler - callback to handle event events
- *
- * Called any time a rv:"monitor"_event events is generated.
- * It parses and prints event.
- */
-static int
-ikm_event_handler(struct trace_seq *s, struct tep_record *record,
-		  struct tep_event *trace_event, void *context)
-{
-	/* if needed: struct trace_instance *inst = context; */
-	char *state, *event, *next_state;
-	unsigned long long final_state;
-	unsigned long long pid;
-	unsigned long long id;
-	int val;
-	bool missing_id;
-
-	if (config.has_id)
-		missing_id = tep_get_field_val(s, trace_event, "id", record, &id, 1);
-
-	tep_get_common_field_val(s, trace_event, "common_pid", record, &pid, 1);
-
-	if (config.has_id && (config.my_pid == id))
-		return 0;
-	else if (config.my_pid == pid)
-		return 0;
-
-	tep_print_event(trace_event->tep, s, record, "%16s-%-8d [%.3d] ",
-			TEP_PRINT_COMM, TEP_PRINT_PID, TEP_PRINT_CPU);
-
-	if (config.is_container)
-		tep_print_event(trace_event->tep, s, record, "%s ", TEP_PRINT_NAME);
-	else
-		trace_seq_printf(s, "event ");
-
-	if (config.has_id) {
-		if (missing_id)
-			/* placeholder if we are dealing with a mixed-type container*/
-			trace_seq_printf(s, "        ");
-		else
-			trace_seq_printf(s, "%8llu ", id);
-	}
-
-	state = tep_get_field_raw(s, trace_event, "state", record, &val, 0);
-	event = tep_get_field_raw(s, trace_event, "event", record, &val, 0);
-	next_state = tep_get_field_raw(s, trace_event, "next_state", record, &val, 0);
-	tep_get_field_val(s, trace_event, "final_state", record, &final_state, 1);
-
-	trace_seq_printf(s, "%24s x %-24s -> %-24s %s\n",
-			 state,
-			 event,
-			 next_state,
-			 final_state ? "Y" : "N");
-
-	trace_seq_do_printf(s);
-	trace_seq_reset(s);
-
-	return 0;
-}
-
-/*
- * ikm_error_handler - callback to handle error events
- *
- * Called any time a rv:"monitor"_errors events is generated.
- * It parses and prints event.
- */
-static int
-ikm_error_handler(struct trace_seq *s, struct tep_record *record,
-		  struct tep_event *trace_event, void *context)
-{
-	unsigned long long pid, id;
-	int cpu = record->cpu;
-	char *state, *event;
-	int val;
-	bool missing_id;
-
-	if (config.has_id)
-		missing_id = tep_get_field_val(s, trace_event, "id", record, &id, 1);
-
-	tep_get_common_field_val(s, trace_event, "common_pid", record, &pid, 1);
-
-	if (config.has_id && config.my_pid == id)
-		return 0;
-	else if (config.my_pid == pid)
-		return 0;
-
-	trace_seq_printf(s, "%8lld [%03d] ", pid, cpu);
-
-	if (config.is_container)
-		tep_print_event(trace_event->tep, s, record, "%s ", TEP_PRINT_NAME);
-	else
-		trace_seq_printf(s, "error ");
-
-	if (config.has_id) {
-		if (missing_id)
-			/* placeholder if we are dealing with a mixed-type container*/
-			trace_seq_printf(s, "        ");
-		else
-			trace_seq_printf(s, "%8llu ", id);
-	}
-
-	state = tep_get_field_raw(s, trace_event, "state", record, &val, 0);
-	event = tep_get_field_raw(s, trace_event, "event", record, &val, 0);
-
-	trace_seq_printf(s, "%24s x %s\n", state, event);
-
-	trace_seq_do_printf(s);
-	trace_seq_reset(s);
-
-	return 0;
-}
-
-static int ikm_enable_trace_events(char *monitor_name, struct trace_instance *inst)
-{
-	char event[MAX_DA_NAME_LEN + 7]; /* max(error_,event_) + '0' = 7 */
-	int retval;
-
-	snprintf(event, sizeof(event), "event_%s", monitor_name);
-	retval = tracefs_event_enable(inst->inst, "rv",  event);
-	if (retval)
-		return -1;
-
-	tep_register_event_handler(inst->tep, -1, "rv", event,
-				   ikm_event_handler, NULL);
-
-	snprintf(event, sizeof(event), "error_%s", monitor_name);
-	retval = tracefs_event_enable(inst->inst, "rv", event);
-	if (retval)
-		return -1;
-
-	tep_register_event_handler(inst->tep, -1, "rv", event,
-				   ikm_error_handler, NULL);
-
-	/* set if at least 1 monitor has id in case of a container */
-	config.has_id = ikm_has_id(monitor_name);
-	if (config.has_id < 0)
-		return -1;
-
-
-	return 0;
-}
-
-static int ikm_enable_trace_container(char *monitor_name,
-				      struct trace_instance *inst)
-{
-	DIR *dp;
-	char *abs_path, rv_path[MAX_PATH];
-	struct dirent *ep;
-	int retval = 0;
-
-	snprintf(rv_path, MAX_PATH, "rv/monitors/%s", monitor_name);
-	abs_path = tracefs_instance_get_file(NULL, rv_path);
-	if (!abs_path)
-		return -1;
-	dp = opendir(abs_path);
-	if (!dp)
-		goto out_free;
-
-	while (!retval && (ep = readdir(dp))) {
-		if (ep->d_type != DT_DIR || ep->d_name[0] == '.')
-			continue;
-		retval = ikm_enable_trace_events(ep->d_name, inst);
-	}
-
-	closedir(dp);
-out_free:
-	free(abs_path);
-	return retval;
-}
-
-/*
- * ikm_setup_trace_instance - set up a tracing instance to collect data
- *
- * Create a trace instance, enable rv: events and enable the trace.
- *
- * Returns the trace_instance * with all set, NULL otherwise.
- */
-static struct trace_instance *ikm_setup_trace_instance(char *monitor_name)
-{
-	struct trace_instance *inst;
-	int retval;
-
-	if (!config.trace)
-		return NULL;
-
-	/* alloc data */
-	inst = calloc(1, sizeof(*inst));
-	if (!inst) {
-		err_msg("ikm: failed to allocate trace instance");
-		goto out_err;
-	}
-
-	retval = trace_instance_init(inst, monitor_name);
-	if (retval)
-		goto out_free;
-
-	if (config.is_container)
-		retval = ikm_enable_trace_container(monitor_name, inst);
-	else
-		retval = ikm_enable_trace_events(monitor_name, inst);
-	if (retval)
-		goto out_inst;
-
-	/* ready to enable */
-	tracefs_trace_on(inst->inst);
-
-	return inst;
-
-out_inst:
-	trace_instance_destroy(inst);
-out_free:
-	free(inst);
-out_err:
-	return NULL;
-}
-
-/**
- * ikm_destroy_trace_instance - destroy a previously created instance
- */
-static void ikm_destroy_trace_instance(struct trace_instance *inst)
-{
-	if (!inst)
-		return;
-
-	trace_instance_destroy(inst);
-	free(inst);
-}
-
 /*
  * ikm_usage_print_reactors - print all available reactors, one per line.
  */
@@ -669,7 +391,7 @@ void ikm_usage_print_reactors(void)
  */
 int ikm_run_monitor(char *monitor_name, int argc, char **argv)
 {
-	struct trace_instance *inst = NULL;
+	struct trace_instance inst = {0};
 	char *nested_name, full_name[2*MAX_DA_NAME_LEN];
 	int retval;
 
@@ -712,8 +434,7 @@ int ikm_run_monitor(char *monitor_name, int argc, char **argv)
 	}
 
 	if (config.trace) {
-		inst = ikm_setup_trace_instance(nested_name);
-		if (!inst)
+		if (trace_instance_setup(&inst, nested_name))
 			goto out_free_instance;
 	}
 
@@ -722,16 +443,16 @@ int ikm_run_monitor(char *monitor_name, int argc, char **argv)
 		goto out_free_instance;
 
 	if (config.trace)
-		ikm_print_header(inst->seq);
+		trace_print_header(inst.seq);
 
 	while (!should_stop()) {
 		if (config.trace) {
-			retval = tracefs_iterate_raw_events(inst->tep,
-							    inst->inst,
+			retval = tracefs_iterate_raw_events(inst.tep,
+							    inst.inst,
 							    NULL,
 							    0,
 							    collect_registered_events,
-							    inst);
+							    &inst);
 			if (retval) {
 				err_msg("ikm: error reading trace buffer\n");
 				break;
@@ -742,7 +463,7 @@ int ikm_run_monitor(char *monitor_name, int argc, char **argv)
 	}
 
 	ikm_disable(full_name);
-	ikm_destroy_trace_instance(inst);
+	trace_instance_destroy(&inst);
 
 	if (config.reactor && config.initial_reactor)
 		ikm_write_reactor(full_name, config.initial_reactor);
@@ -750,7 +471,7 @@ int ikm_run_monitor(char *monitor_name, int argc, char **argv)
 	return 1;
 
 out_free_instance:
-	ikm_destroy_trace_instance(inst);
+	trace_instance_destroy(&inst);
 	if (config.reactor && config.initial_reactor)
 		ikm_write_reactor(full_name, config.initial_reactor);
 	return -1;
diff --git a/tools/verification/rv/src/trace.c b/tools/verification/rv/src/trace.c
index 1b9f9bfa1893..aa4bb73624ec 100644
--- a/tools/verification/rv/src/trace.c
+++ b/tools/verification/rv/src/trace.c
@@ -5,34 +5,16 @@
  * Copyright (C) 2022 Red Hat Inc, Daniel Bristot de Oliveira <bristot@kernel.org>
  */
 
-#include <sys/sendfile.h>
 #include <tracefs.h>
-#include <signal.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <dirent.h>
 #include <errno.h>
 
 #include <rv.h>
 #include <trace.h>
 #include <utils.h>
 
-/*
- * create_instance - create a trace instance with *instance_name
- */
-static struct tracefs_instance *create_instance(char *instance_name)
-{
-	return tracefs_instance_create(instance_name);
-}
-
-/*
- * destroy_instance - remove a trace instance and free the data
- */
-static void destroy_instance(struct tracefs_instance *inst)
-{
-	tracefs_instance_destroy(inst);
-	tracefs_instance_free(inst);
-}
-
 /**
  * collect_registered_events - call the existing callback function for the event
  *
@@ -64,8 +46,12 @@ collect_registered_events(struct tep_event *event, struct tep_record *record,
  */
 void trace_instance_destroy(struct trace_instance *trace)
 {
+	if (!trace)
+		return;
+
 	if (trace->inst) {
-		destroy_instance(trace->inst);
+		tracefs_instance_destroy(trace->inst);
+		tracefs_instance_free(trace->inst);
 		trace->inst = NULL;
 	}
 
@@ -101,7 +87,7 @@ int trace_instance_init(struct trace_instance *trace, char *name)
 
 	trace_seq_init(trace->seq);
 
-	trace->inst = create_instance(name);
+	trace->inst = tracefs_instance_create(name);
 	if (!trace->inst)
 		goto out_err;
 
@@ -131,3 +117,265 @@ int trace_instance_start(struct trace_instance *trace)
 {
 	return tracefs_trace_on(trace->inst);
 }
+
+static int monitor_has_id(char *name)
+{
+	char path[MAX_PATH];
+	char *format;
+	int has_id;
+
+	snprintf(path, MAX_PATH, "events/rv/event_%s/format", name);
+	format = tracefs_instance_file_read(NULL, path, NULL);
+	if (!format) {
+		err_msg("rv: fail reading monitor's %s format event file\n", name);
+		return -1;
+	}
+
+	/* print fmt: "%d: %s x %s -> %s %s", REC->id, ... */
+	has_id = !!strstr(format, "REC->id");
+
+	debug_msg("rv: monitor %s has id: %s\n", name, has_id ? "yes" : "no");
+
+	free(format);
+
+	return has_id;
+}
+
+/**
+ * trace_print_header - print the header of the monitor events output
+ *
+ * Print the column header of the rv monitor events output: task, pid,
+ * cpu and event type, followed by the state machine transition
+ * (state x event -> next state and final). The ID column is printed
+ * only if the monitor's events have an id field.
+ */
+void trace_print_header(struct trace_seq *s)
+{
+	trace_seq_printf(s, "%16s-%-8s %5s %5s ", "<TASK>", "PID", "[CPU]", "TYPE");
+	if (config.has_id)
+		trace_seq_printf(s, "%8s ", "ID");
+
+	trace_seq_printf(s, "%24s x %-24s -> %-24s %s\n",
+			 "STATE",
+			 "EVENT",
+			 "NEXT_STATE",
+			 "FINAL");
+
+	trace_seq_printf(s, "%16s %-8s %5s %5s ", " | ", " | ", " | ", " | ");
+
+	if (config.has_id)
+		trace_seq_printf(s, "%8s ", " | ");
+
+	trace_seq_printf(s, "%24s   %-24s    %-24s %s\n",
+			 " | ",
+			 " | ",
+			 " | ",
+			 "|");
+}
+
+/*
+ * da_event_handler - callback to handle event events
+ *
+ * Called any time a rv:"monitor"_event events is generated.
+ * It parses and prints event.
+ */
+static int da_event_handler(struct trace_seq *s, struct tep_record *record,
+			    struct tep_event *trace_event, void *context)
+{
+	char *state, *event, *next_state;
+	unsigned long long final_state;
+	unsigned long long pid;
+	unsigned long long id;
+	int val;
+	bool missing_id;
+
+	if (config.has_id)
+		missing_id = tep_get_field_val(s, trace_event, "id", record, &id, 1);
+
+	tep_get_common_field_val(s, trace_event, "common_pid", record, &pid, 1);
+
+	if (config.has_id && (config.my_pid == id))
+		return 0;
+	else if (config.my_pid == pid)
+		return 0;
+
+	tep_print_event(trace_event->tep, s, record, "%16s-%-8d [%.3d] ",
+			TEP_PRINT_COMM, TEP_PRINT_PID, TEP_PRINT_CPU);
+
+	if (config.is_container)
+		tep_print_event(trace_event->tep, s, record, "%s ", TEP_PRINT_NAME);
+	else
+		trace_seq_printf(s, "event ");
+
+	if (config.has_id) {
+		if (missing_id)
+			/* placeholder if we are dealing with a mixed-type container*/
+			trace_seq_printf(s, "        ");
+		else
+			trace_seq_printf(s, "%8llu ", id);
+	}
+
+	state = tep_get_field_raw(s, trace_event, "state", record, &val, 0);
+	event = tep_get_field_raw(s, trace_event, "event", record, &val, 0);
+	next_state = tep_get_field_raw(s, trace_event, "next_state", record, &val, 0);
+	tep_get_field_val(s, trace_event, "final_state", record, &final_state, 1);
+
+	trace_seq_printf(s, "%24s x %-24s -> %-24s %s\n",
+			 state,
+			 event,
+			 next_state,
+			 final_state ? "Y" : "N");
+
+	trace_seq_do_printf(s);
+	trace_seq_reset(s);
+
+	return 0;
+}
+
+/*
+ * da_error_handler - callback to handle error events
+ *
+ * Called any time a rv:"monitor"_errors events is generated.
+ * It parses and prints event.
+ */
+static int da_error_handler(struct trace_seq *s, struct tep_record *record,
+			    struct tep_event *trace_event, void *context)
+{
+	unsigned long long pid, id;
+	int cpu = record->cpu;
+	char *state, *event;
+	int val;
+	bool missing_id;
+
+	if (config.has_id)
+		missing_id = tep_get_field_val(s, trace_event, "id", record, &id, 1);
+
+	tep_get_common_field_val(s, trace_event, "common_pid", record, &pid, 1);
+
+	if (config.has_id && config.my_pid == id)
+		return 0;
+	else if (config.my_pid == pid)
+		return 0;
+
+	trace_seq_printf(s, "%8lld [%03d] ", pid, cpu);
+
+	if (config.is_container)
+		tep_print_event(trace_event->tep, s, record, "%s ", TEP_PRINT_NAME);
+	else
+		trace_seq_printf(s, "error ");
+
+	if (config.has_id) {
+		if (missing_id)
+			/* placeholder if we are dealing with a mixed-type container*/
+			trace_seq_printf(s, "        ");
+		else
+			trace_seq_printf(s, "%8llu ", id);
+	}
+
+	state = tep_get_field_raw(s, trace_event, "state", record, &val, 0);
+	event = tep_get_field_raw(s, trace_event, "event", record, &val, 0);
+
+	trace_seq_printf(s, "%24s x %s\n", state, event);
+
+	trace_seq_do_printf(s);
+	trace_seq_reset(s);
+
+	return 0;
+}
+
+/**
+ * trace_enable_monitor_events - enable a monitor's events in a trace instance
+ *
+ * Enable the rv:event_"monitor" and rv:error_"monitor" events in the
+ * given trace instance, and register the callbacks that parse and
+ * print these events.
+ *
+ * Returns 0 on success, -1 otherwise.
+ */
+static int trace_enable_monitor_events(struct trace_instance *inst, char *name)
+{
+	char event[MAX_DA_NAME_LEN + 7]; /* max(error_,event_) + '0' = 7 */
+	int retval;
+
+	snprintf(event, sizeof(event), "event_%s", name);
+	retval = tracefs_event_enable(inst->inst, "rv",  event);
+	if (retval)
+		return -1;
+
+	tep_register_event_handler(inst->tep, -1, "rv", event,
+				   da_event_handler, NULL);
+
+	snprintf(event, sizeof(event), "error_%s", name);
+	retval = tracefs_event_enable(inst->inst, "rv", event);
+	if (retval)
+		return -1;
+
+	tep_register_event_handler(inst->tep, -1, "rv", event,
+				   da_error_handler, NULL);
+
+	/* set if at least 1 monitor has id in case of a container */
+	config.has_id = monitor_has_id(name);
+	if (config.has_id < 0)
+		return -1;
+
+	return 0;
+}
+
+static int trace_enable_container_events(struct trace_instance *inst, char *name)
+{
+	DIR *dp;
+	char *abs_path, rv_path[MAX_PATH];
+	struct dirent *ep;
+	int retval = 0;
+
+	snprintf(rv_path, MAX_PATH, "rv/monitors/%s", name);
+	abs_path = tracefs_instance_get_file(NULL, rv_path);
+	if (!abs_path)
+		return -1;
+	dp = opendir(abs_path);
+	free(abs_path);
+	if (!dp)
+		return -1;
+
+	while (!retval && (ep = readdir(dp))) {
+		if (ep->d_type != DT_DIR || ep->d_name[0] == '.')
+			continue;
+		retval = trace_enable_monitor_events(inst, ep->d_name);
+	}
+
+	closedir(dp);
+	return retval;
+}
+
+/*
+ * trace_instance_setup - set up a tracing instance to collect data
+ *
+ * Create a trace instance, enable rv: events and enable the trace.
+ *
+ * Returns 0 on success, -1 otherwise.
+ */
+int trace_instance_setup(struct trace_instance *inst, char *name)
+{
+	int retval;
+
+	if (!config.trace)
+		return -1;
+
+	retval = trace_instance_init(inst, name);
+	if (retval)
+		return -1;
+
+	if (config.is_container)
+		retval = trace_enable_container_events(inst, name);
+	else
+		retval = trace_enable_monitor_events(inst, name);
+	if (retval) {
+		trace_instance_destroy(inst);
+		return -1;
+	}
+
+	/* ready to enable */
+	tracefs_trace_on(inst->inst);
+
+	return 0;
+}
-- 
2.56.1


  parent reply	other threads:[~2026-11-26 13:01 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 12:59 [PATCH v3 00/18] rv: Add support for BPF monitors Gabriele Monaco
2026-11-26 12:59 ` [PATCH v3 01/18] sched: Add task enqueue/dequeue trace points Gabriele Monaco
2026-11-26 13:13   ` sashiko-bot
2026-11-26 12:59 ` [PATCH v3 02/18] tools/rv: Skip empty pid error in selftest if command failed Gabriele Monaco
2026-11-26 12:59 ` [PATCH v3 03/18] rv: Add wrapper macros for monitor tracepoint definitions Gabriele Monaco
2026-11-26 12:59 ` [PATCH v3 04/18] rv: Propagate const to model strings and tracepoints Gabriele Monaco
2026-11-26 12:59 ` [PATCH v3 05/18] rv: Add generic monitor event tracepoints and BPF kfuncs Gabriele Monaco
2026-11-26 13:24   ` sashiko-bot
2026-11-26 22:09   ` kernel test robot
2026-11-27 23:33   ` Alexei Starovoitov
2026-11-30 10:56     ` Gabriele Monaco
2026-12-01  5:06       ` Alexei Starovoitov
2026-12-01 10:26         ` John Ogness
2026-12-01 11:07         ` Tomas Glozar
2026-12-01 15:42         ` Gabriele Monaco
2026-12-01 21:25           ` Alexei Starovoitov
2026-11-29 15:15   ` kernel test robot
2026-11-30  7:03   ` kernel test robot
2026-11-26 12:59 ` [PATCH v3 06/18] tools/build: Add a feature test for bpftool-btf Gabriele Monaco
2026-11-26 12:59 ` [PATCH v3 07/18] tools/rv: Move argument parsing from in_kernel to utils Gabriele Monaco
2026-11-26 12:59 ` Gabriele Monaco [this message]
2026-11-26 12:59 ` [PATCH v3 09/18] tools/rv: Implement BPF monitor discovery and listing Gabriele Monaco
2026-11-26 13:17   ` sashiko-bot
2026-11-26 12:59 ` [PATCH v3 10/18] tools/rv: Implement BPF monitor loading and tracing Gabriele Monaco
2026-11-26 13:14   ` sashiko-bot
2026-11-26 12:59 ` [PATCH v3 11/18] tools/rv: Rework tracing to support generic events Gabriele Monaco
2026-11-26 13:13   ` sashiko-bot
2026-11-26 12:59 ` [PATCH v3 12/18] tools/rv: Copy stripped bpf_atomic.h from libarena Gabriele Monaco
2026-11-26 12:59 ` [PATCH v3 13/18] tools/rv: Add BPF monitors Gabriele Monaco
2026-11-26 13:24   ` sashiko-bot
2026-11-26 13:00 ` [PATCH v3 14/18] tools/rv: Define CONFIG_X86_64 statically for " Gabriele Monaco
2026-11-26 13:00 ` [PATCH v3 15/18] tools/rv: Add -E/--errors-only option Gabriele Monaco
2026-11-26 13:00 ` [PATCH v3 16/18] verification/rvgen: Add support for BPF monitors Gabriele Monaco
2026-11-26 13:14   ` sashiko-bot
2026-11-26 13:00 ` [PATCH v3 17/18] tools/rv: Add selftest for rv bpf monitors Gabriele Monaco
2026-11-26 13:00 ` [PATCH v3 18/18] verification/rvgen: Add selftest for rvgen -b Gabriele Monaco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126130004.127155-9-gmonaco@redhat.com \
    --to=gmonaco@redhat.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=john.ogness@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=namcao@linutronix.de \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tobias.schaffner@siemens.com \
    --cc=vmalik@redhat.com \
    --cc=wen.yang@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.