Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182331
b: refs/heads/master
c: 9967411
h: refs/heads/master
i:
  182329: 46c676d
  182327: e656eda
v: v3
  • Loading branch information
Xiao Guangrong authored and Ingo Molnar committed Dec 28, 2009
1 parent 5146025 commit 962b30b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61be3e59ba7a6dbd39f92fd1f107285a0caeb008
refs/heads/master: 9967411e5b324a908e344d6ce66b77bd5d372c3e
5 changes: 5 additions & 0 deletions trunk/tools/perf/util/trace-event-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ static void read_header_files(void)
write_or_die("header_page", 12);
write_or_die(&size, 8);
check_size = copy_file_fd(fd);
close(fd);

if (size != check_size)
die("wrong size for '%s' size=%lld read=%lld",
path, size, check_size);
Expand All @@ -271,6 +273,7 @@ static void read_header_files(void)
if (size != check_size)
die("wrong size for '%s'", path);
put_tracing_file(path);
close(fd);
}

static bool name_in_tp_list(char *sys, struct tracepoint_path *tps)
Expand Down Expand Up @@ -337,6 +340,7 @@ static void copy_event_system(const char *sys, struct tracepoint_path *tps)

free(format);
}
closedir(dir);
}

static void read_ftrace_files(struct tracepoint_path *tps)
Expand Down Expand Up @@ -407,6 +411,7 @@ static void read_event_files(struct tracepoint_path *tps)
free(sys);
}

closedir(dir);
put_tracing_file(path);
}

Expand Down

0 comments on commit 962b30b

Please sign in to comment.