Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140858
b: refs/heads/master
c: c032ef6
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt committed Mar 5, 2009
1 parent 77db9bf commit 4f3b74f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 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: e74da5235cec6cb71eb338c987f876ecc793138b
refs/heads/master: c032ef64d680717e4e8ce3da65da6419a35f8a2c
24 changes: 2 additions & 22 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ static const char *trace_options[] = {
"sym-userobj",
"printk-msg-only",
"context-info",
"latency-format",
NULL
};

Expand Down Expand Up @@ -1829,26 +1830,12 @@ static int tracing_open(struct inode *inode, struct file *file)
iter = __tracing_open(inode, file);
if (IS_ERR(iter))
ret = PTR_ERR(iter);

return ret;
}

static int tracing_lt_open(struct inode *inode, struct file *file)
{
struct trace_iterator *iter;
int ret = 0;

iter = __tracing_open(inode, file);

if (IS_ERR(iter))
ret = PTR_ERR(iter);
else
else if (trace_flags & TRACE_ITER_LATENCY_FMT)
iter->iter_flags |= TRACE_FILE_LAT_FMT;

return ret;
}


static void *
t_next(struct seq_file *m, void *v, loff_t *pos)
{
Expand Down Expand Up @@ -1927,13 +1914,6 @@ static struct file_operations tracing_fops = {
.release = tracing_release,
};

static struct file_operations tracing_lt_fops = {
.open = tracing_lt_open,
.read = seq_read,
.llseek = seq_lseek,
.release = tracing_release,
};

static struct file_operations show_traces_fops = {
.open = show_traces_open,
.read = seq_read,
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,8 @@ enum trace_iterator_flags {
TRACE_ITER_USERSTACKTRACE = 0x4000,
TRACE_ITER_SYM_USEROBJ = 0x8000,
TRACE_ITER_PRINTK_MSGONLY = 0x10000,
TRACE_ITER_CONTEXT_INFO = 0x20000 /* Print pid/cpu/time */
TRACE_ITER_CONTEXT_INFO = 0x20000, /* Print pid/cpu/time */
TRACE_ITER_LATENCY_FMT = 0x40000,
};

/*
Expand Down

0 comments on commit 4f3b74f

Please sign in to comment.