mirror of https://gitee.com/openkylin/linux.git
perf kmem: Fix statistics typo
Replace bytes_req with bytes_alloc. Signed-off-by: Wenji Huang <wenji.huang@oracle.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Cc: acme@redhat.com LKML-Reference: <1261389175-2227-1-git-send-email-wenji.huang@oracle.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
c2ef6661ce
commit
4efb5290ae
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue