linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: 高翔 <gaoxiang17@xiaomi.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Xiang Gao <gxxa03070307@gmail.com>
Cc: "david@redhat.com" <david@redhat.com>,
	"lorenzo.stoakes@oracle.com" <lorenzo.stoakes@oracle.com>,
	"Liam.Howlett@oracle.com" <Liam.Howlett@oracle.com>,
	"vbabka@suse.cz" <vbabka@suse.cz>,
	"rppt@kernel.org" <rppt@kernel.org>,
	"surenb@google.com" <surenb@google.com>,
	"mhocko@suse.com" <mhocko@suse.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: 答复: [External Mail]Re: [PATCH] mm/cma: add 'available count' and 'total count' to trace_cma_alloc_start
Date: Wed, 20 Aug 2025 01:55:42 +0000	[thread overview]
Message-ID: <2a67b098459f4f40b2d5f8b40d260aa5@xiaomi.com> (raw)
In-Reply-To: <20250819173115.55194150617998021b4130b9@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 1914 bytes --]


Sorry, I've changed it.

________________________________
发件人: Andrew Morton <akpm@linux-foundation.org>
发送时间: 2025年8月20日 8:31:15
收件人: Xiang Gao
抄送: david@redhat.com; lorenzo.stoakes@oracle.com; Liam.Howlett@oracle.com; vbabka@suse.cz; rppt@kernel.org; surenb@google.com; mhocko@suse.com; linux-mm@kvack.org; linux-kernel@vger.kernel.org; 高翔
主题: [External Mail]Re: [PATCH] mm/cma: add 'available count' and 'total count' to trace_cma_alloc_start

[外部邮件] 此邮件来源于小米公司外部,请谨慎处理。若对邮件安全性存疑,请将邮件转发给misec@xiaomi.com进行反馈

On Tue, 19 Aug 2025 21:48:17 +0800 Xiang Gao <gxxa03070307@gmail.com> wrote:

> From: gaoxiang17 <gaoxiang17@xiaomi.com>
>
> This makes cma info more intuitive during debugging.
>
> ...
>
> --- a/include/trace/events/cma.h
> +++ b/include/trace/events/cma.h
>
> ...
>
>       TP_STRUCT__entry(
>               __string(name, name)
> -             __field(unsigned long, count)
> +             __field(unsigned long, request_count)
> +             __field(unsigned long, available_count)
> +             __field(unsigned long, total_count)
>               __field(unsigned int, align)
>       ),
>
>       TP_fast_assign(
>               __assign_str(name);
> -             __entry->count = count;
> +             __entry->count = request_count;
> +             __entry->available_count = available_count;
> +             __entry->total_count = total_count;
>               __entry->align = align;
>       ),
>
>       TP_printk("name=%s count=%lu align=%u",
>                 __get_str(name),
> -               __entry->count,
> +               __entry->request_count,
> +               __entry->available_count,
> +               __entry->total_count,
>                 __entry->align)

adds three args to the printk but didn't add their conversions to the
printk control string?



[-- Attachment #2: Type: text/html, Size: 4742 bytes --]

      reply	other threads:[~2025-08-20  1:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-19 13:48 Xiang Gao
2025-08-19 19:17 ` David Hildenbrand
2025-08-20  1:55   ` 答复: [External Mail]Re: " 高翔
2025-08-20  0:31 ` Andrew Morton
2025-08-20  1:55   ` 高翔 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a67b098459f4f40b2d5f8b40d260aa5@xiaomi.com \
    --to=gaoxiang17@xiaomi.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=gxxa03070307@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mhocko@suse.com \
    --cc=rppt@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox