|
@@ -807,7 +807,7 @@ out:
|
|
int
|
|
int
|
|
trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
|
|
trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
|
|
{
|
|
{
|
|
- unsigned long save_max = tracing_max_latency;
|
|
|
|
|
|
+ unsigned long save_max = tr->max_latency;
|
|
unsigned long count;
|
|
unsigned long count;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -819,7 +819,7 @@ trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
|
|
}
|
|
}
|
|
|
|
|
|
/* reset the max latency */
|
|
/* reset the max latency */
|
|
- tracing_max_latency = 0;
|
|
|
|
|
|
+ tr->max_latency = 0;
|
|
/* disable interrupts for a bit */
|
|
/* disable interrupts for a bit */
|
|
local_irq_disable();
|
|
local_irq_disable();
|
|
udelay(100);
|
|
udelay(100);
|
|
@@ -846,7 +846,7 @@ trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
|
|
ret = -1;
|
|
ret = -1;
|
|
}
|
|
}
|
|
|
|
|
|
- tracing_max_latency = save_max;
|
|
|
|
|
|
+ tr->max_latency = save_max;
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
@@ -856,7 +856,7 @@ trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
|
|
int
|
|
int
|
|
trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
|
|
trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
|
|
{
|
|
{
|
|
- unsigned long save_max = tracing_max_latency;
|
|
|
|
|
|
+ unsigned long save_max = tr->max_latency;
|
|
unsigned long count;
|
|
unsigned long count;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -881,7 +881,7 @@ trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
|
|
}
|
|
}
|
|
|
|
|
|
/* reset the max latency */
|
|
/* reset the max latency */
|
|
- tracing_max_latency = 0;
|
|
|
|
|
|
+ tr->max_latency = 0;
|
|
/* disable preemption for a bit */
|
|
/* disable preemption for a bit */
|
|
preempt_disable();
|
|
preempt_disable();
|
|
udelay(100);
|
|
udelay(100);
|
|
@@ -908,7 +908,7 @@ trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
|
|
ret = -1;
|
|
ret = -1;
|
|
}
|
|
}
|
|
|
|
|
|
- tracing_max_latency = save_max;
|
|
|
|
|
|
+ tr->max_latency = save_max;
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
@@ -918,7 +918,7 @@ trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
|
|
int
|
|
int
|
|
trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr)
|
|
trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr)
|
|
{
|
|
{
|
|
- unsigned long save_max = tracing_max_latency;
|
|
|
|
|
|
+ unsigned long save_max = tr->max_latency;
|
|
unsigned long count;
|
|
unsigned long count;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -943,7 +943,7 @@ trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *
|
|
}
|
|
}
|
|
|
|
|
|
/* reset the max latency */
|
|
/* reset the max latency */
|
|
- tracing_max_latency = 0;
|
|
|
|
|
|
+ tr->max_latency = 0;
|
|
|
|
|
|
/* disable preemption and interrupts for a bit */
|
|
/* disable preemption and interrupts for a bit */
|
|
preempt_disable();
|
|
preempt_disable();
|
|
@@ -978,7 +978,7 @@ trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *
|
|
}
|
|
}
|
|
|
|
|
|
/* do the test by disabling interrupts first this time */
|
|
/* do the test by disabling interrupts first this time */
|
|
- tracing_max_latency = 0;
|
|
|
|
|
|
+ tr->max_latency = 0;
|
|
tracing_start();
|
|
tracing_start();
|
|
trace->start(tr);
|
|
trace->start(tr);
|
|
|
|
|
|
@@ -1009,7 +1009,7 @@ out:
|
|
tracing_start();
|
|
tracing_start();
|
|
out_no_start:
|
|
out_no_start:
|
|
trace->reset(tr);
|
|
trace->reset(tr);
|
|
- tracing_max_latency = save_max;
|
|
|
|
|
|
+ tr->max_latency = save_max;
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
@@ -1062,7 +1062,7 @@ static int trace_wakeup_test_thread(void *data)
|
|
int
|
|
int
|
|
trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
|
|
trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
|
|
{
|
|
{
|
|
- unsigned long save_max = tracing_max_latency;
|
|
|
|
|
|
+ unsigned long save_max = tr->max_latency;
|
|
struct task_struct *p;
|
|
struct task_struct *p;
|
|
struct completion is_ready;
|
|
struct completion is_ready;
|
|
unsigned long count;
|
|
unsigned long count;
|
|
@@ -1088,7 +1088,7 @@ trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
|
|
}
|
|
}
|
|
|
|
|
|
/* reset the max latency */
|
|
/* reset the max latency */
|
|
- tracing_max_latency = 0;
|
|
|
|
|
|
+ tr->max_latency = 0;
|
|
|
|
|
|
while (p->on_rq) {
|
|
while (p->on_rq) {
|
|
/*
|
|
/*
|
|
@@ -1118,7 +1118,7 @@ trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
|
|
trace->reset(tr);
|
|
trace->reset(tr);
|
|
tracing_start();
|
|
tracing_start();
|
|
|
|
|
|
- tracing_max_latency = save_max;
|
|
|
|
|
|
+ tr->max_latency = save_max;
|
|
|
|
|
|
/* kill the thread */
|
|
/* kill the thread */
|
|
kthread_stop(p);
|
|
kthread_stop(p);
|