1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 #include <tracefs.h> 3 #include <tracefs.h> 4 4 5 struct trace_instance { 5 struct trace_instance { 6 struct tracefs_instance *inst; 6 struct tracefs_instance *inst; 7 struct tep_handle *tep; 7 struct tep_handle *tep; 8 struct trace_seq *seq; 8 struct trace_seq *seq; 9 }; 9 }; 10 10 11 int trace_instance_init(struct trace_instance 11 int trace_instance_init(struct trace_instance *trace, char *name); 12 int trace_instance_start(struct trace_instance 12 int trace_instance_start(struct trace_instance *trace); 13 void trace_instance_destroy(struct trace_insta 13 void trace_instance_destroy(struct trace_instance *trace); 14 14 15 int collect_registered_events(struct tep_event 15 int collect_registered_events(struct tep_event *event, struct tep_record *record, 16 int cpu, void *c 16 int cpu, void *context); 17 17
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.