Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbc49b25 authored by Tzvetomir Stoyanov (VMware)'s avatar Tzvetomir Stoyanov (VMware) Committed by Arnaldo Carvalho de Melo
Browse files

tools lib traceevent, perf tools: Rename 'struct pevent_record' to 'struct tep_record'



In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "pevent_". This changes
the 'struct pevent_record' to 'struct tep_record'.

Signed-off-by: default avatarTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180808180659.866021298@goodmis.org


Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 096177a8
Loading
Loading
Loading
Loading
+18 −18
Original line number Original line Diff line number Diff line
@@ -5150,7 +5150,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
 * and lock depth) and places it into the trace_seq.
 * and lock depth) and places it into the trace_seq.
 */
 */
void pevent_data_lat_fmt(struct tep_handle *pevent,
void pevent_data_lat_fmt(struct tep_handle *pevent,
			 struct trace_seq *s, struct pevent_record *record)
			 struct trace_seq *s, struct tep_record *record)
{
{
	static int check_lock_depth = 1;
	static int check_lock_depth = 1;
	static int check_migrate_disable = 1;
	static int check_migrate_disable = 1;
@@ -5229,7 +5229,7 @@ void pevent_data_lat_fmt(struct tep_handle *pevent,
 *
 *
 * This returns the event id from the @rec.
 * This returns the event id from the @rec.
 */
 */
int pevent_data_type(struct tep_handle *pevent, struct pevent_record *rec)
int pevent_data_type(struct tep_handle *pevent, struct tep_record *rec)
{
{
	return trace_parse_common_type(pevent, rec->data);
	return trace_parse_common_type(pevent, rec->data);
}
}
@@ -5253,7 +5253,7 @@ struct event_format *pevent_data_event_from_type(struct tep_handle *pevent, int
 *
 *
 * This returns the PID from a record.
 * This returns the PID from a record.
 */
 */
int pevent_data_pid(struct tep_handle *pevent, struct pevent_record *rec)
int pevent_data_pid(struct tep_handle *pevent, struct tep_record *rec)
{
{
	return parse_common_pid(pevent, rec->data);
	return parse_common_pid(pevent, rec->data);
}
}
@@ -5265,7 +5265,7 @@ int pevent_data_pid(struct tep_handle *pevent, struct pevent_record *rec)
 *
 *
 * This returns the preempt count from a record.
 * This returns the preempt count from a record.
 */
 */
int pevent_data_preempt_count(struct tep_handle *pevent, struct pevent_record *rec)
int pevent_data_preempt_count(struct tep_handle *pevent, struct tep_record *rec)
{
{
	return parse_common_pc(pevent, rec->data);
	return parse_common_pc(pevent, rec->data);
}
}
@@ -5279,7 +5279,7 @@ int pevent_data_preempt_count(struct tep_handle *pevent, struct pevent_record *r
 *
 *
 *  Use trace_flag_type enum for the flags (see event-parse.h).
 *  Use trace_flag_type enum for the flags (see event-parse.h).
 */
 */
int pevent_data_flags(struct tep_handle *pevent, struct pevent_record *rec)
int pevent_data_flags(struct tep_handle *pevent, struct tep_record *rec)
{
{
	return parse_common_flags(pevent, rec->data);
	return parse_common_flags(pevent, rec->data);
}
}
@@ -5400,7 +5400,7 @@ int pevent_cmdline_pid(struct tep_handle *pevent, struct cmdline *cmdline)
 * writes the print format into the trace_seq.
 * writes the print format into the trace_seq.
 */
 */
void pevent_event_info(struct trace_seq *s, struct event_format *event,
void pevent_event_info(struct trace_seq *s, struct event_format *event,
		       struct pevent_record *record)
		       struct tep_record *record)
{
{
	int print_pretty = 1;
	int print_pretty = 1;


@@ -5441,7 +5441,7 @@ static bool is_timestamp_in_us(char *trace_clock, bool use_trace_clock)
 * is found.
 * is found.
 */
 */
struct event_format *
struct event_format *
pevent_find_event_by_record(struct tep_handle *pevent, struct pevent_record *record)
pevent_find_event_by_record(struct tep_handle *pevent, struct tep_record *record)
{
{
	int type;
	int type;


@@ -5466,7 +5466,7 @@ pevent_find_event_by_record(struct tep_handle *pevent, struct pevent_record *rec
 */
 */
void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s,
			     struct event_format *event,
			     struct event_format *event,
			     struct pevent_record *record)
			     struct tep_record *record)
{
{
	void *data = record->data;
	void *data = record->data;
	const char *comm;
	const char *comm;
@@ -5494,7 +5494,7 @@ void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s,
 */
 */
void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s,
			     struct event_format *event,
			     struct event_format *event,
			     struct pevent_record *record,
			     struct tep_record *record,
			     bool use_trace_clock)
			     bool use_trace_clock)
{
{
	unsigned long secs;
	unsigned long secs;
@@ -5544,7 +5544,7 @@ void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s,
 */
 */
void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s,
			     struct event_format *event,
			     struct event_format *event,
			     struct pevent_record *record)
			     struct tep_record *record)
{
{
	static const char *spaces = "                    "; /* 20 spaces */
	static const char *spaces = "                    "; /* 20 spaces */
	int len;
	int len;
@@ -5560,7 +5560,7 @@ void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s,
}
}


void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s,
			struct pevent_record *record, bool use_trace_clock)
			struct tep_record *record, bool use_trace_clock)
{
{
	struct event_format *event;
	struct event_format *event;


@@ -6244,7 +6244,7 @@ int pevent_strerror(struct tep_handle *pevent __maybe_unused,
}
}


int get_field_val(struct trace_seq *s, struct format_field *field,
int get_field_val(struct trace_seq *s, struct format_field *field,
		  const char *name, struct pevent_record *record,
		  const char *name, struct tep_record *record,
		  unsigned long long *val, int err)
		  unsigned long long *val, int err)
{
{
	if (!field) {
	if (!field) {
@@ -6277,7 +6277,7 @@ int get_field_val(struct trace_seq *s, struct format_field *field,
 * On failure, it returns NULL.
 * On failure, it returns NULL.
 */
 */
void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event,
void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event,
			   const char *name, struct pevent_record *record,
			   const char *name, struct tep_record *record,
			   int *len, int err)
			   int *len, int err)
{
{
	struct format_field *field;
	struct format_field *field;
@@ -6324,7 +6324,7 @@ void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event,
 * Returns 0 on success -1 on field not found.
 * Returns 0 on success -1 on field not found.
 */
 */
int pevent_get_field_val(struct trace_seq *s, struct event_format *event,
int pevent_get_field_val(struct trace_seq *s, struct event_format *event,
			 const char *name, struct pevent_record *record,
			 const char *name, struct tep_record *record,
			 unsigned long long *val, int err)
			 unsigned long long *val, int err)
{
{
	struct format_field *field;
	struct format_field *field;
@@ -6349,7 +6349,7 @@ int pevent_get_field_val(struct trace_seq *s, struct event_format *event,
 * Returns 0 on success -1 on field not found.
 * Returns 0 on success -1 on field not found.
 */
 */
int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event,
int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event,
				const char *name, struct pevent_record *record,
				const char *name, struct tep_record *record,
				unsigned long long *val, int err)
				unsigned long long *val, int err)
{
{
	struct format_field *field;
	struct format_field *field;
@@ -6374,7 +6374,7 @@ int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event,
 * Returns 0 on success -1 on field not found.
 * Returns 0 on success -1 on field not found.
 */
 */
int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event,
int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event,
			     const char *name, struct pevent_record *record,
			     const char *name, struct tep_record *record,
			     unsigned long long *val, int err)
			     unsigned long long *val, int err)
{
{
	struct format_field *field;
	struct format_field *field;
@@ -6400,7 +6400,7 @@ int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event,
 */
 */
int pevent_print_num_field(struct trace_seq *s, const char *fmt,
int pevent_print_num_field(struct trace_seq *s, const char *fmt,
			   struct event_format *event, const char *name,
			   struct event_format *event, const char *name,
			   struct pevent_record *record, int err)
			   struct tep_record *record, int err)
{
{
	struct format_field *field = pevent_find_field(event, name);
	struct format_field *field = pevent_find_field(event, name);
	unsigned long long val;
	unsigned long long val;
@@ -6432,7 +6432,7 @@ int pevent_print_num_field(struct trace_seq *s, const char *fmt,
 */
 */
int pevent_print_func_field(struct trace_seq *s, const char *fmt,
int pevent_print_func_field(struct trace_seq *s, const char *fmt,
			    struct event_format *event, const char *name,
			    struct event_format *event, const char *name,
			    struct pevent_record *record, int err)
			    struct tep_record *record, int err)
{
{
	struct format_field *field = pevent_find_field(event, name);
	struct format_field *field = pevent_find_field(event, name);
	struct tep_handle *pevent = event->pevent;
	struct tep_handle *pevent = event->pevent;
+22 −22
Original line number Original line Diff line number Diff line
@@ -41,7 +41,7 @@
#define DEBUG_RECORD 0
#define DEBUG_RECORD 0
#endif
#endif


struct pevent_record {
struct tep_record {
	unsigned long long	ts;
	unsigned long long	ts;
	unsigned long long	offset;
	unsigned long long	offset;
	long long		missed_events;	/* buffer dropped events before */
	long long		missed_events;	/* buffer dropped events before */
@@ -53,8 +53,8 @@ struct pevent_record {
	int			locked;		/* Do not free, even if ref_count is zero */
	int			locked;		/* Do not free, even if ref_count is zero */
	void			*priv;
	void			*priv;
#if DEBUG_RECORD
#if DEBUG_RECORD
	struct pevent_record	*prev;
	struct tep_record	*prev;
	struct pevent_record	*next;
	struct tep_record	*next;
	long			alloc_addr;
	long			alloc_addr;
#endif
#endif
};
};
@@ -102,7 +102,7 @@ struct tep_handle;
struct event_format;
struct event_format;


typedef int (*pevent_event_handler_func)(struct trace_seq *s,
typedef int (*pevent_event_handler_func)(struct trace_seq *s,
					 struct pevent_record *record,
					 struct tep_record *record,
					 struct event_format *event,
					 struct event_format *event,
					 void *context);
					 void *context);


@@ -628,16 +628,16 @@ int pevent_pid_is_registered(struct tep_handle *pevent, int pid);


void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s,
			     struct event_format *event,
			     struct event_format *event,
			     struct pevent_record *record);
			     struct tep_record *record);
void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s,
			     struct event_format *event,
			     struct event_format *event,
			     struct pevent_record *record,
			     struct tep_record *record,
			     bool use_trace_clock);
			     bool use_trace_clock);
void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s,
			     struct event_format *event,
			     struct event_format *event,
			     struct pevent_record *record);
			     struct tep_record *record);
void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s,
void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s,
			struct pevent_record *record, bool use_trace_clock);
			struct tep_record *record, bool use_trace_clock);


int pevent_parse_header_page(struct tep_handle *pevent, char *buf, unsigned long size,
int pevent_parse_header_page(struct tep_handle *pevent, char *buf, unsigned long size,
			     int long_size);
			     int long_size);
@@ -652,26 +652,26 @@ void pevent_free_format(struct event_format *event);
void pevent_free_format_field(struct format_field *field);
void pevent_free_format_field(struct format_field *field);


void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event,
void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event,
			   const char *name, struct pevent_record *record,
			   const char *name, struct tep_record *record,
			   int *len, int err);
			   int *len, int err);


int pevent_get_field_val(struct trace_seq *s, struct event_format *event,
int pevent_get_field_val(struct trace_seq *s, struct event_format *event,
			 const char *name, struct pevent_record *record,
			 const char *name, struct tep_record *record,
			 unsigned long long *val, int err);
			 unsigned long long *val, int err);
int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event,
int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event,
				const char *name, struct pevent_record *record,
				const char *name, struct tep_record *record,
				unsigned long long *val, int err);
				unsigned long long *val, int err);
int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event,
int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event,
			     const char *name, struct pevent_record *record,
			     const char *name, struct tep_record *record,
			     unsigned long long *val, int err);
			     unsigned long long *val, int err);


int pevent_print_num_field(struct trace_seq *s, const char *fmt,
int pevent_print_num_field(struct trace_seq *s, const char *fmt,
			   struct event_format *event, const char *name,
			   struct event_format *event, const char *name,
			   struct pevent_record *record, int err);
			   struct tep_record *record, int err);


int pevent_print_func_field(struct trace_seq *s, const char *fmt,
int pevent_print_func_field(struct trace_seq *s, const char *fmt,
			   struct event_format *event, const char *name,
			   struct event_format *event, const char *name,
			   struct pevent_record *record, int err);
			   struct tep_record *record, int err);


int pevent_register_event_handler(struct tep_handle *pevent, int id,
int pevent_register_event_handler(struct tep_handle *pevent, int id,
				  const char *sys_name, const char *event_name,
				  const char *sys_name, const char *event_name,
@@ -703,15 +703,15 @@ struct event_format *
pevent_find_event_by_name(struct tep_handle *pevent, const char *sys, const char *name);
pevent_find_event_by_name(struct tep_handle *pevent, const char *sys, const char *name);


struct event_format *
struct event_format *
pevent_find_event_by_record(struct tep_handle *pevent, struct pevent_record *record);
pevent_find_event_by_record(struct tep_handle *pevent, struct tep_record *record);


void pevent_data_lat_fmt(struct tep_handle *pevent,
void pevent_data_lat_fmt(struct tep_handle *pevent,
			 struct trace_seq *s, struct pevent_record *record);
			 struct trace_seq *s, struct tep_record *record);
int pevent_data_type(struct tep_handle *pevent, struct pevent_record *rec);
int pevent_data_type(struct tep_handle *pevent, struct tep_record *rec);
struct event_format *pevent_data_event_from_type(struct tep_handle *pevent, int type);
struct event_format *pevent_data_event_from_type(struct tep_handle *pevent, int type);
int pevent_data_pid(struct tep_handle *pevent, struct pevent_record *rec);
int pevent_data_pid(struct tep_handle *pevent, struct tep_record *rec);
int pevent_data_preempt_count(struct tep_handle *pevent, struct pevent_record *rec);
int pevent_data_preempt_count(struct tep_handle *pevent, struct tep_record *rec);
int pevent_data_flags(struct tep_handle *pevent, struct pevent_record *rec);
int pevent_data_flags(struct tep_handle *pevent, struct tep_record *rec);
const char *pevent_data_comm_from_pid(struct tep_handle *pevent, int pid);
const char *pevent_data_comm_from_pid(struct tep_handle *pevent, int pid);
struct cmdline;
struct cmdline;
struct cmdline *pevent_data_pid_from_comm(struct tep_handle *pevent, const char *comm,
struct cmdline *pevent_data_pid_from_comm(struct tep_handle *pevent, const char *comm,
@@ -723,7 +723,7 @@ void pevent_print_field(struct trace_seq *s, void *data,
void pevent_print_fields(struct trace_seq *s, void *data,
void pevent_print_fields(struct trace_seq *s, void *data,
			 int size __maybe_unused, struct event_format *event);
			 int size __maybe_unused, struct event_format *event);
void pevent_event_info(struct trace_seq *s, struct event_format *event,
void pevent_event_info(struct trace_seq *s, struct event_format *event,
		       struct pevent_record *record);
		       struct tep_record *record);
int pevent_strerror(struct tep_handle *pevent, enum pevent_errno errnum,
int pevent_strerror(struct tep_handle *pevent, enum pevent_errno errnum,
		    char *buf, size_t buflen);
		    char *buf, size_t buflen);


@@ -957,7 +957,7 @@ enum pevent_errno pevent_filter_add_filter_str(struct event_filter *filter,
					       const char *filter_str);
					       const char *filter_str);


enum pevent_errno pevent_filter_match(struct event_filter *filter,
enum pevent_errno pevent_filter_match(struct event_filter *filter,
				      struct pevent_record *record);
				      struct tep_record *record);


int pevent_filter_strerror(struct event_filter *filter, enum pevent_errno err,
int pevent_filter_strerror(struct event_filter *filter, enum pevent_errno err,
			   char *buf, size_t buflen);
			   char *buf, size_t buflen);
+12 −12
Original line number Original line Diff line number Diff line
@@ -1697,10 +1697,10 @@ int pevent_filter_event_has_trivial(struct event_filter *filter,
}
}


static int test_filter(struct event_format *event, struct filter_arg *arg,
static int test_filter(struct event_format *event, struct filter_arg *arg,
		       struct pevent_record *record, enum pevent_errno *err);
		       struct tep_record *record, enum pevent_errno *err);


static const char *
static const char *
get_comm(struct event_format *event, struct pevent_record *record)
get_comm(struct event_format *event, struct tep_record *record)
{
{
	const char *comm;
	const char *comm;
	int pid;
	int pid;
@@ -1712,7 +1712,7 @@ get_comm(struct event_format *event, struct pevent_record *record)


static unsigned long long
static unsigned long long
get_value(struct event_format *event,
get_value(struct event_format *event,
	  struct format_field *field, struct pevent_record *record)
	  struct format_field *field, struct tep_record *record)
{
{
	unsigned long long val;
	unsigned long long val;


@@ -1748,11 +1748,11 @@ get_value(struct event_format *event,


static unsigned long long
static unsigned long long
get_arg_value(struct event_format *event, struct filter_arg *arg,
get_arg_value(struct event_format *event, struct filter_arg *arg,
	      struct pevent_record *record, enum pevent_errno *err);
	      struct tep_record *record, enum pevent_errno *err);


static unsigned long long
static unsigned long long
get_exp_value(struct event_format *event, struct filter_arg *arg,
get_exp_value(struct event_format *event, struct filter_arg *arg,
	      struct pevent_record *record, enum pevent_errno *err)
	      struct tep_record *record, enum pevent_errno *err)
{
{
	unsigned long long lval, rval;
	unsigned long long lval, rval;


@@ -1807,7 +1807,7 @@ get_exp_value(struct event_format *event, struct filter_arg *arg,


static unsigned long long
static unsigned long long
get_arg_value(struct event_format *event, struct filter_arg *arg,
get_arg_value(struct event_format *event, struct filter_arg *arg,
	      struct pevent_record *record, enum pevent_errno *err)
	      struct tep_record *record, enum pevent_errno *err)
{
{
	switch (arg->type) {
	switch (arg->type) {
	case FILTER_ARG_FIELD:
	case FILTER_ARG_FIELD:
@@ -1831,7 +1831,7 @@ get_arg_value(struct event_format *event, struct filter_arg *arg,
}
}


static int test_num(struct event_format *event, struct filter_arg *arg,
static int test_num(struct event_format *event, struct filter_arg *arg,
		    struct pevent_record *record, enum pevent_errno *err)
		    struct tep_record *record, enum pevent_errno *err)
{
{
	unsigned long long lval, rval;
	unsigned long long lval, rval;


@@ -1871,7 +1871,7 @@ static int test_num(struct event_format *event, struct filter_arg *arg,
	}
	}
}
}


static const char *get_field_str(struct filter_arg *arg, struct pevent_record *record)
static const char *get_field_str(struct filter_arg *arg, struct tep_record *record)
{
{
	struct event_format *event;
	struct event_format *event;
	struct tep_handle *pevent;
	struct tep_handle *pevent;
@@ -1922,7 +1922,7 @@ static const char *get_field_str(struct filter_arg *arg, struct pevent_record *r
}
}


static int test_str(struct event_format *event, struct filter_arg *arg,
static int test_str(struct event_format *event, struct filter_arg *arg,
		    struct pevent_record *record, enum pevent_errno *err)
		    struct tep_record *record, enum pevent_errno *err)
{
{
	const char *val;
	const char *val;


@@ -1953,7 +1953,7 @@ static int test_str(struct event_format *event, struct filter_arg *arg,
}
}


static int test_op(struct event_format *event, struct filter_arg *arg,
static int test_op(struct event_format *event, struct filter_arg *arg,
		   struct pevent_record *record, enum pevent_errno *err)
		   struct tep_record *record, enum pevent_errno *err)
{
{
	switch (arg->op.type) {
	switch (arg->op.type) {
	case FILTER_OP_AND:
	case FILTER_OP_AND:
@@ -1975,7 +1975,7 @@ static int test_op(struct event_format *event, struct filter_arg *arg,
}
}


static int test_filter(struct event_format *event, struct filter_arg *arg,
static int test_filter(struct event_format *event, struct filter_arg *arg,
		       struct pevent_record *record, enum pevent_errno *err)
		       struct tep_record *record, enum pevent_errno *err)
{
{
	if (*err) {
	if (*err) {
		/*
		/*
@@ -2047,7 +2047,7 @@ int pevent_event_filtered(struct event_filter *filter, int event_id)
 * otherwise - error occurred during test
 * otherwise - error occurred during test
 */
 */
enum pevent_errno pevent_filter_match(struct event_filter *filter,
enum pevent_errno pevent_filter_match(struct event_filter *filter,
				      struct pevent_record *record)
				      struct tep_record *record)
{
{
	struct tep_handle *pevent = filter->pevent;
	struct tep_handle *pevent = filter->pevent;
	struct filter_type *filter_type;
	struct filter_type *filter_type;
+1 −1
Original line number Original line Diff line number Diff line
@@ -122,7 +122,7 @@ static int add_and_get_index(const char *parent, const char *child, int cpu)
	return 0;
	return 0;
}
}


static int function_handler(struct trace_seq *s, struct pevent_record *record,
static int function_handler(struct trace_seq *s, struct tep_record *record,
			    struct event_format *event, void *context)
			    struct event_format *event, void *context)
{
{
	struct tep_handle *pevent = event->pevent;
	struct tep_handle *pevent = event->pevent;
+2 −2
Original line number Original line Diff line number Diff line
@@ -25,7 +25,7 @@
#include "event-parse.h"
#include "event-parse.h"


static int timer_expire_handler(struct trace_seq *s,
static int timer_expire_handler(struct trace_seq *s,
				struct pevent_record *record,
				struct tep_record *record,
				struct event_format *event, void *context)
				struct event_format *event, void *context)
{
{
	trace_seq_printf(s, "hrtimer=");
	trace_seq_printf(s, "hrtimer=");
@@ -45,7 +45,7 @@ static int timer_expire_handler(struct trace_seq *s,
}
}


static int timer_start_handler(struct trace_seq *s,
static int timer_start_handler(struct trace_seq *s,
			       struct pevent_record *record,
			       struct tep_record *record,
			       struct event_format *event, void *context)
			       struct event_format *event, void *context)
{
{
	trace_seq_printf(s, "hrtimer=");
	trace_seq_printf(s, "hrtimer=");
Loading