perf kmem: Fix statistics typo
authorWenji Huang <[email protected]>
Mon, 21 Dec 2009 09:52:55 +0000 (17:52 +0800)
committerIngo Molnar <[email protected]>
Mon, 28 Dec 2009 09:31:56 +0000 (10:31 +0100)
Replace bytes_req with bytes_alloc.

Signed-off-by: Wenji Huang <[email protected]>
Reviewed-by: Li Zefan <[email protected]>
Cc: [email protected]
LKML-Reference: <1261389175[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/builtin-kmem.c

index fc21ad79dd83e25a7520f00e6d3611587650ee79..7ceb7416c3169dadb71fbf44de7246a4e25c5f2a 100644 (file)
@@ -137,7 +137,7 @@ static void insert_alloc_stat(unsigned long call_site, unsigned long ptr,
        if (data && data->ptr == ptr) {
                data->hit++;
                data->bytes_req += bytes_req;
-               data->bytes_alloc += bytes_req;
+               data->bytes_alloc += bytes_alloc;
        } else {
                data = malloc(sizeof(*data));
                if (!data)
@@ -177,7 +177,7 @@ static void insert_caller_stat(unsigned long call_site,
        if (data && data->call_site == call_site) {
                data->hit++;
                data->bytes_req += bytes_req;
-               data->bytes_alloc += bytes_req;
+               data->bytes_alloc += bytes_alloc;
        } else {
                data = malloc(sizeof(*data));
                if (!data)