File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,14 @@ int trace_instance_start(struct trace_instance *trace)
196
196
return tracefs_trace_on (trace -> inst );
197
197
}
198
198
199
+ /*
200
+ * trace_instance_stop - stop tracing a given rtla instance
201
+ */
202
+ int trace_instance_stop (struct trace_instance * trace )
203
+ {
204
+ return tracefs_trace_off (trace -> inst );
205
+ }
206
+
199
207
/*
200
208
* trace_events_free - free a list of trace events
201
209
*/
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ struct trace_instance {
21
21
22
22
int trace_instance_init (struct trace_instance * trace , char * tool_name );
23
23
int trace_instance_start (struct trace_instance * trace );
24
+ int trace_instance_stop (struct trace_instance * trace );
24
25
void trace_instance_destroy (struct trace_instance * trace );
25
26
26
27
struct trace_seq * get_trace_seq (void );
You can’t perform that action at this time.
0 commit comments