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

Commit f43c738b authored by Hiraku Toyooka's avatar Hiraku Toyooka Committed by Steven Rostedt
Browse files

tracing: Change tracer's integer flags to bool

print_max and use_max_tr in struct tracer are "int" variables and
used like flags. This is wasteful, so change the type to "bool".

Link: http://lkml.kernel.org/r/20121002082710.9807.86393.stgit@falsita



Signed-off-by: default avatarHiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 6f415672
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -285,8 +285,8 @@ struct tracer {
	int			(*set_flag)(u32 old_flags, u32 bit, int set);
	int			(*set_flag)(u32 old_flags, u32 bit, int set);
	struct tracer		*next;
	struct tracer		*next;
	struct tracer_flags	*flags;
	struct tracer_flags	*flags;
	int			print_max;
	bool			print_max;
	int			use_max_tr;
	bool			use_max_tr;
};
};




+6 −6
Original line number Original line Diff line number Diff line
@@ -604,7 +604,7 @@ static struct tracer irqsoff_tracer __read_mostly =
	.reset		= irqsoff_tracer_reset,
	.reset		= irqsoff_tracer_reset,
	.start		= irqsoff_tracer_start,
	.start		= irqsoff_tracer_start,
	.stop		= irqsoff_tracer_stop,
	.stop		= irqsoff_tracer_stop,
	.print_max	= 1,
	.print_max	= true,
	.print_header   = irqsoff_print_header,
	.print_header   = irqsoff_print_header,
	.print_line     = irqsoff_print_line,
	.print_line     = irqsoff_print_line,
	.flags		= &tracer_flags,
	.flags		= &tracer_flags,
@@ -614,7 +614,7 @@ static struct tracer irqsoff_tracer __read_mostly =
#endif
#endif
	.open           = irqsoff_trace_open,
	.open           = irqsoff_trace_open,
	.close          = irqsoff_trace_close,
	.close          = irqsoff_trace_close,
	.use_max_tr	= 1,
	.use_max_tr	= true,
};
};
# define register_irqsoff(trace) register_tracer(&trace)
# define register_irqsoff(trace) register_tracer(&trace)
#else
#else
@@ -637,7 +637,7 @@ static struct tracer preemptoff_tracer __read_mostly =
	.reset		= irqsoff_tracer_reset,
	.reset		= irqsoff_tracer_reset,
	.start		= irqsoff_tracer_start,
	.start		= irqsoff_tracer_start,
	.stop		= irqsoff_tracer_stop,
	.stop		= irqsoff_tracer_stop,
	.print_max	= 1,
	.print_max	= true,
	.print_header   = irqsoff_print_header,
	.print_header   = irqsoff_print_header,
	.print_line     = irqsoff_print_line,
	.print_line     = irqsoff_print_line,
	.flags		= &tracer_flags,
	.flags		= &tracer_flags,
@@ -647,7 +647,7 @@ static struct tracer preemptoff_tracer __read_mostly =
#endif
#endif
	.open		= irqsoff_trace_open,
	.open		= irqsoff_trace_open,
	.close		= irqsoff_trace_close,
	.close		= irqsoff_trace_close,
	.use_max_tr	= 1,
	.use_max_tr	= true,
};
};
# define register_preemptoff(trace) register_tracer(&trace)
# define register_preemptoff(trace) register_tracer(&trace)
#else
#else
@@ -672,7 +672,7 @@ static struct tracer preemptirqsoff_tracer __read_mostly =
	.reset		= irqsoff_tracer_reset,
	.reset		= irqsoff_tracer_reset,
	.start		= irqsoff_tracer_start,
	.start		= irqsoff_tracer_start,
	.stop		= irqsoff_tracer_stop,
	.stop		= irqsoff_tracer_stop,
	.print_max	= 1,
	.print_max	= true,
	.print_header   = irqsoff_print_header,
	.print_header   = irqsoff_print_header,
	.print_line     = irqsoff_print_line,
	.print_line     = irqsoff_print_line,
	.flags		= &tracer_flags,
	.flags		= &tracer_flags,
@@ -682,7 +682,7 @@ static struct tracer preemptirqsoff_tracer __read_mostly =
#endif
#endif
	.open		= irqsoff_trace_open,
	.open		= irqsoff_trace_open,
	.close		= irqsoff_trace_close,
	.close		= irqsoff_trace_close,
	.use_max_tr	= 1,
	.use_max_tr	= true,
};
};


# define register_preemptirqsoff(trace) register_tracer(&trace)
# define register_preemptirqsoff(trace) register_tracer(&trace)
+4 −4
Original line number Original line Diff line number Diff line
@@ -589,7 +589,7 @@ static struct tracer wakeup_tracer __read_mostly =
	.reset		= wakeup_tracer_reset,
	.reset		= wakeup_tracer_reset,
	.start		= wakeup_tracer_start,
	.start		= wakeup_tracer_start,
	.stop		= wakeup_tracer_stop,
	.stop		= wakeup_tracer_stop,
	.print_max	= 1,
	.print_max	= true,
	.print_header	= wakeup_print_header,
	.print_header	= wakeup_print_header,
	.print_line	= wakeup_print_line,
	.print_line	= wakeup_print_line,
	.flags		= &tracer_flags,
	.flags		= &tracer_flags,
@@ -599,7 +599,7 @@ static struct tracer wakeup_tracer __read_mostly =
#endif
#endif
	.open		= wakeup_trace_open,
	.open		= wakeup_trace_open,
	.close		= wakeup_trace_close,
	.close		= wakeup_trace_close,
	.use_max_tr	= 1,
	.use_max_tr	= true,
};
};


static struct tracer wakeup_rt_tracer __read_mostly =
static struct tracer wakeup_rt_tracer __read_mostly =
@@ -610,7 +610,7 @@ static struct tracer wakeup_rt_tracer __read_mostly =
	.start		= wakeup_tracer_start,
	.start		= wakeup_tracer_start,
	.stop		= wakeup_tracer_stop,
	.stop		= wakeup_tracer_stop,
	.wait_pipe	= poll_wait_pipe,
	.wait_pipe	= poll_wait_pipe,
	.print_max	= 1,
	.print_max	= true,
	.print_header	= wakeup_print_header,
	.print_header	= wakeup_print_header,
	.print_line	= wakeup_print_line,
	.print_line	= wakeup_print_line,
	.flags		= &tracer_flags,
	.flags		= &tracer_flags,
@@ -620,7 +620,7 @@ static struct tracer wakeup_rt_tracer __read_mostly =
#endif
#endif
	.open		= wakeup_trace_open,
	.open		= wakeup_trace_open,
	.close		= wakeup_trace_close,
	.close		= wakeup_trace_close,
	.use_max_tr	= 1,
	.use_max_tr	= true,
};
};


__init static int init_wakeup_tracer(void)
__init static int init_wakeup_tracer(void)