Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100574
b: refs/heads/master
c: 2b1bce1
h: refs/heads/master
v: v3
  • Loading branch information
Ankita Garg authored and Ingo Molnar committed Jun 10, 2008
1 parent 9ed6381 commit 8e70537
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 040ec23d07f95285e9777a85cda29cb339a3065b
refs/heads/master: 2b1bce1787700768cbc87c8509851c6f49d252dc
22 changes: 17 additions & 5 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ static cpumask_t __read_mostly tracing_buffer_mask;
#define for_each_tracing_cpu(cpu) \
for_each_cpu_mask(cpu, tracing_buffer_mask)

/* dummy trace to disable tracing */
static struct tracer no_tracer __read_mostly = {
.name = "none",
};

static int trace_alloc_page(void);
static int trace_free_page(void);

Expand Down Expand Up @@ -135,6 +130,23 @@ static DECLARE_WAIT_QUEUE_HEAD(trace_wait);
/* trace_flags holds iter_ctrl options */
unsigned long trace_flags = TRACE_ITER_PRINT_PARENT;

static notrace void no_trace_init(struct trace_array *tr)
{
int cpu;

if(tr->ctrl)
for_each_online_cpu(cpu)
tracing_reset(tr->data[cpu]);
tracer_enabled = 0;
}

/* dummy trace to disable tracing */
static struct tracer no_tracer __read_mostly = {
.name = "none",
.init = no_trace_init
};


/**
* trace_wake_up - wake up tasks waiting for trace input
*
Expand Down

0 comments on commit 8e70537

Please sign in to comment.