From: Akinobu Mita Date: Fri, 15 Nov 2024 18:20:23 +0000 (-0800) Subject: mm/damon: fix order of arguments in damos_before_apply tracepoint X-Git-Tag: v6.13-rc2~5^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6535b8669c1a74078098517174e53fc907ce9d56;p=thirdparty%2Flinux.git mm/damon: fix order of arguments in damos_before_apply tracepoint 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. Link: https://lkml.kernel.org/r/20241115182023.43118-1-sj@kernel.org Link: https://patch.msgid.link/20241112154828.40307-1-akinobu.mita@gmail.com Fixes: c603c630b509 ("mm/damon/core: add a tracepoint for damos apply target regions") Signed-off-by: Akinobu Mita Signed-off-by: SeongJae Park Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Cc: Steven Rostedt Cc: Signed-off-by: Andrew Morton --- diff --git a/include/trace/events/damon.h b/include/trace/events/damon.h index 23200aabccacb..da4bd9fd11625 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),