git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf sched: Add 'perf sched map' scheduling event map printout
[safe/jmp/linux-2.6]
/
tools
/
perf
/
util
/
thread.c
diff --git
a/tools/perf/util/thread.c
b/tools/perf/util/thread.c
index
12c4341
..
45efb5d
100644
(file)
--- a/
tools/perf/util/thread.c
+++ b/
tools/perf/util/thread.c
@@
-8,7
+8,7
@@
static struct thread *thread__new(pid_t pid)
{
- struct thread *self =
malloc(
sizeof(*self));
+ struct thread *self =
calloc(1,
sizeof(*self));
if (self != NULL) {
self->pid = pid;