* [PATCH] mm/damon: fix order of arguments in damos_before_apply tracepoint
@ 2024-11-12 15:48 Akinobu Mita
2024-11-12 20:19 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2024-11-12 15:48 UTC (permalink / raw)
To: damon; +Cc: linux-mm, akinobu.mita, SeongJae Park
Since the order of the scheme_idx and target_idx arguments in TP_ARGS is
reversed, they are stored in the trace record in reverse.
Fixes: c603c630b509 ("mm/damon/core: add a tracepoint for damos apply target regions")
Cc: SeongJae Park <sj@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
---
include/trace/events/damon.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/trace/events/damon.h b/include/trace/events/damon.h
index 23200aabccac..da4bd9fd1162 100644
--- a/include/trace/events/damon.h
+++ b/include/trace/events/damon.h
@@ -15,7 +15,7 @@ TRACE_EVENT_CONDITION(damos_before_apply,
unsigned int target_idx, struct damon_region *r,
unsigned int nr_regions, bool do_trace),
- TP_ARGS(context_idx, target_idx, scheme_idx, r, nr_regions, do_trace),
+ TP_ARGS(context_idx, scheme_idx, target_idx, r, nr_regions, do_trace),
TP_CONDITION(do_trace),
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/damon: fix order of arguments in damos_before_apply tracepoint
2024-11-12 15:48 [PATCH] mm/damon: fix order of arguments in damos_before_apply tracepoint Akinobu Mita
@ 2024-11-12 20:19 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2024-11-12 20:19 UTC (permalink / raw)
To: Akinobu Mita; +Cc: SeongJae Park, damon, linux-mm
Hi Akinobu,
On Wed, 13 Nov 2024 00:48:28 +0900 Akinobu Mita <akinobu.mita@gmail.com> wrote:
> Since the order of the scheme_idx and target_idx arguments in TP_ARGS is
> reversed, they are stored in the trace record in reverse.
Thank you for finding and fixing this!
>
> Fixes: c603c630b509 ("mm/damon/core: add a tracepoint for damos apply target regions")
Can we also add Cc: <stable@vger.kernel.org>?
> Cc: SeongJae Park <sj@kernel.org>
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-12 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12 15:48 [PATCH] mm/damon: fix order of arguments in damos_before_apply tracepoint Akinobu Mita
2024-11-12 20:19 ` SeongJae Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox