Skip to content

Commit 6535b86

Browse files
mitaakpm00
authored andcommitted
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/[email protected] Link: https://patch.msgid.link/[email protected] Fixes: c603c63 ("mm/damon/core: add a tracepoint for damos apply target regions") Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: SeongJae Park <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 5c37936 commit 6535b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/trace/events/damon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TRACE_EVENT_CONDITION(damos_before_apply,
1515
unsigned int target_idx, struct damon_region *r,
1616
unsigned int nr_regions, bool do_trace),
1717

18-
TP_ARGS(context_idx, target_idx, scheme_idx, r, nr_regions, do_trace),
18+
TP_ARGS(context_idx, scheme_idx, target_idx, r, nr_regions, do_trace),
1919

2020
TP_CONDITION(do_trace),
2121

0 commit comments

Comments
 (0)