From: David Hildenbrand <david@redhat.com>
To: Xiang Gao <gxxa03070307@gmail.com>, akpm@linux-foundation.org
Cc: 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, gaoxiang17 <gaoxiang17@xiaomi.com>
Subject: Re: [PATCH v2 1/1] mm/cma: add 'available count' and 'total count' to trace_cma_alloc_start
Date: Wed, 20 Aug 2025 11:14:10 +0200 [thread overview]
Message-ID: <24ed0c41-6ec3-47ba-8f63-94c521df995b@redhat.com> (raw)
In-Reply-To: <d30f91137e3a296152463ea65474e1ca56f4eda3.1755654367.git.gaoxiang17@xiaomi.com>
On 20.08.25 03:53, Xiang Gao wrote:
> From: gaoxiang17 <gaoxiang17@xiaomi.com>
>
> This makes cma info more intuitive during debugging.
>
> Signed-off-by: gaoxiang17 <gaoxiang17@xiaomi.com>
> ---
> include/trace/events/cma.h | 19 +++++++++++++------
> mm/cma.c | 2 +-
> 2 files changed, 14 insertions(+), 7 deletions(-)
>
> diff --git a/include/trace/events/cma.h b/include/trace/events/cma.h
> index 383c09f583ac..5655ac521fb5 100644
> --- a/include/trace/events/cma.h
> +++ b/include/trace/events/cma.h
> @@ -38,25 +38,32 @@ TRACE_EVENT(cma_release,
>
> TRACE_EVENT(cma_alloc_start,
>
> - TP_PROTO(const char *name, unsigned long count, unsigned int align),
> + TP_PROTO(const char *name, unsigned long request_count, unsigned long available_count,
> + unsigned long total_count, unsigned int align),
>
> - TP_ARGS(name, count, align),
> + TP_ARGS(name, request_count, available_count, total_count, align),
>
> 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",
> + TP_printk("name=%s count=%lu request_count=%lu total_count=%lu align=%u",
"requested_count" ?
--
Cheers
David / dhildenb
next prev parent reply other threads:[~2025-08-20 9:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1755654367.git.gaoxiang17@xiaomi.com>
2025-08-20 1:53 ` [PATCH v2 1/1] mm/cma: add 'available count' and 'total count' to trace_cma_alloc_start Xiang Gao
2025-08-20 9:14 ` David Hildenbrand [this message]
2025-08-20 9:27 ` 答复: [External Mail]Re: " 高翔
2025-08-20 9:30 ` David Hildenbrand
2025-08-20 22:38 ` 答复: " 高翔
2025-08-20 22:52 ` kernel test robot
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=24ed0c41-6ec3-47ba-8f63-94c521df995b@redhat.com \
--to=david@redhat.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=gaoxiang17@xiaomi.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;
as well as URLs for NNTP newsgroup(s).