diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-01-13 03:58:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-13 04:08:50 -0500 |
commit | 61405fea92c42d072d9b8bd189689f1502a838af (patch) | |
tree | 013ea3e7ed71f4114004d5852d40b6e89e128f76 /tools/perf/builtin-kmem.c | |
parent | 9c443dfdd31eddea6cbe6ee0ca469fbcc4e1dc3b (diff) | |
parent | 1703f2c321a8a531c393e137a82602e16c6061cb (diff) |
Merge branch 'perf/urgent' into perf/core
Merge reason: queue up dependent patch, update to -rc4
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r-- | tools/perf/builtin-kmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 05dc5a735039..88c570c18e3e 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c | |||
@@ -132,7 +132,7 @@ static void insert_alloc_stat(unsigned long call_site, unsigned long ptr, | |||
132 | if (data && data->ptr == ptr) { | 132 | if (data && data->ptr == ptr) { |
133 | data->hit++; | 133 | data->hit++; |
134 | data->bytes_req += bytes_req; | 134 | data->bytes_req += bytes_req; |
135 | data->bytes_alloc += bytes_req; | 135 | data->bytes_alloc += bytes_alloc; |
136 | } else { | 136 | } else { |
137 | data = malloc(sizeof(*data)); | 137 | data = malloc(sizeof(*data)); |
138 | if (!data) | 138 | if (!data) |
@@ -172,7 +172,7 @@ static void insert_caller_stat(unsigned long call_site, | |||
172 | if (data && data->call_site == call_site) { | 172 | if (data && data->call_site == call_site) { |
173 | data->hit++; | 173 | data->hit++; |
174 | data->bytes_req += bytes_req; | 174 | data->bytes_req += bytes_req; |
175 | data->bytes_alloc += bytes_req; | 175 | data->bytes_alloc += bytes_alloc; |
176 | } else { | 176 | } else { |
177 | data = malloc(sizeof(*data)); | 177 | data = malloc(sizeof(*data)); |
178 | if (!data) | 178 | if (!data) |