Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163777
b: refs/heads/master
c: 6706ccf
h: refs/heads/master
i:
  163775: 2bbfa46
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Sep 17, 2009
1 parent 17be04a commit 76eeb9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 40749d0ff49f99c3661b336fe5e5625207bd925a
refs/heads/master: 6706ccf8e776e51e38ffa89fe7dd20e80eb1e860
7 changes: 4 additions & 3 deletions trunk/tools/perf/util/trace-event-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static void read_proc_kallsyms(void)
static void read_ftrace_printk(void)
{
unsigned int size, check_size;
const char *path;
char *path;
struct stat st;
int ret;

Expand All @@ -468,14 +468,15 @@ static void read_ftrace_printk(void)
/* not found */
size = 0;
write_or_die(&size, 4);
return;
goto out;
}
size = get_size(path);
write_or_die(&size, 4);
check_size = copy_file(path);
if (size != check_size)
die("error in size of file '%s'", path);

out:
put_tracing_file(path);
}

static struct tracepoint_path *
Expand Down

0 comments on commit 76eeb9f

Please sign in to comment.