summaryrefslogtreecommitdiff
path: root/tools/tracing/rtla/src/trace.h
diff options
context:
space:
mode:
authorDaniel Bristot de Oliveira <bristot@kernel.org>2024-05-16 17:15:22 +0300
committerDaniel Bristot de Oliveira <bristot@kernel.org>2024-05-16 17:44:34 +0300
commite9a4062e1527238c5649d0f4be794a8566fd77c9 (patch)
tree9e9ed8c235323861f76d5f12def7e14729c55f7d /tools/tracing/rtla/src/trace.h
parentfb9e90a67ee9a42779a8ea296a4cf7734258b27d (diff)
downloadlinux-e9a4062e1527238c5649d0f4be794a8566fd77c9.tar.xz
rtla: Add --trace-buffer-size option
Add the option allow the users to set a different buffer size for the trace. For example, in large systems, the user might be interested on reducing the trace buffer to avoid large tracing files. The buffer size is specified in kB, and it is only affecting the tracing instance. The function trace_set_buffer_size() appears on libtracefs v1.6, so increase the minimum required version on Makefile.config. Link: https://lkml.kernel.org/r/e7c9ca5b3865f28e131a49ec3b984fadf2d056c6.1715860611.git.bristot@kernel.org Cc: Jonathan Corbet <corbet@lwn.net> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: John Kacur <jkacur@redhat.com> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Diffstat (limited to 'tools/tracing/rtla/src/trace.h')
-rw-r--r--tools/tracing/rtla/src/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tracing/rtla/src/trace.h b/tools/tracing/rtla/src/trace.h
index 2e9a89a25615..c7c92dc9a18a 100644
--- a/tools/tracing/rtla/src/trace.h
+++ b/tools/tracing/rtla/src/trace.h
@@ -48,3 +48,4 @@ int trace_events_enable(struct trace_instance *instance,
int trace_event_add_filter(struct trace_events *event, char *filter);
int trace_event_add_trigger(struct trace_events *event, char *trigger);
int trace_is_off(struct trace_instance *tool, struct trace_instance *trace);
+int trace_set_buffer_size(struct trace_instance *trace, int size);