From patchwork Tue Nov 12 15:48:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 13872407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F557D42B9E for ; Tue, 12 Nov 2024 15:49:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DDE936B0101; Tue, 12 Nov 2024 10:49:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D64A96B0102; Tue, 12 Nov 2024 10:49:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C06FA6B0103; Tue, 12 Nov 2024 10:49:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9C22A6B0101 for ; Tue, 12 Nov 2024 10:49:01 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 58B321C4E81 for ; Tue, 12 Nov 2024 15:49:01 +0000 (UTC) X-FDA: 82777875222.26.4D89BB7 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by imf22.hostedemail.com (Postfix) with ESMTP id 809D6C0018 for ; Tue, 12 Nov 2024 15:48:07 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JWLgnsq0; spf=pass (imf22.hostedemail.com: domain of akinobu.mita@gmail.com designates 209.85.214.171 as permitted sender) smtp.mailfrom=akinobu.mita@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731426346; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=p948C0QrjbXhA9Hwm5sgEm5mPnJ0vtdxL7YU0iPETlg=; b=1XKoajanAo3+GvXB0blchh/lEyykSxM3jXXmgiyRo18GMfXEFgShGgcFGwdN+CrTDZaRi7 dETmn2vB3WL0IsAe8b7Wlog0BxnufuG2Qk75Oa8N2sOOlFkQHoc9uL1SQvAg+wCPSZHos2 5zeGfv5hj8L2iV39bOXoI7e1k6aNOeg= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JWLgnsq0; spf=pass (imf22.hostedemail.com: domain of akinobu.mita@gmail.com designates 209.85.214.171 as permitted sender) smtp.mailfrom=akinobu.mita@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731426346; a=rsa-sha256; cv=none; b=LE4rpQJnIzifYZz21qzCjDRPJQa/gMJeoJ8ETAF2CGFYcTEUUIHQdwyp9auvswU6GjWniw bC9axqMN8Pm4m+bvZHsIbwKg9EeRMLgxC0EKpxw01vG+i8W10L8zmeAt+sqebj+msKd9hR 3ao6kc6tCqCM5jOoYuCZmMzvSC8nVOI= Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-20c77459558so53261455ad.0 for ; Tue, 12 Nov 2024 07:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731426538; x=1732031338; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=p948C0QrjbXhA9Hwm5sgEm5mPnJ0vtdxL7YU0iPETlg=; b=JWLgnsq0Yt6d/zYCHzIO/J8heq/wSKbHwHJar40ilk/ubIu+pM+51WktmjxbrVYyMq H74ooNKXOA/HSUd+FxQT2NwTvHDxcXZmrXvtMR5q+cxmUNP9lfjstj6/JhmY8046tdML 6f/qjkiGUG2igSgGAaufeJ77I8mWi0rBTk2wZODBfIV4AlWlKzORtPCGZ3NOr1kry+zA tp0qAW5aBNEthex6rM8gHIKwoMMX/AO6KAOPhrYIXje8ZaiGgLzhgA1obCgXkUBguzSK k2etpIkmHnX+9SrHcDU9KIHumAn7lMOx23O8O4j/mqWjSSrzmCQO5JYCT8jEQQak09E7 nJvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731426538; x=1732031338; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p948C0QrjbXhA9Hwm5sgEm5mPnJ0vtdxL7YU0iPETlg=; b=mT5tG2YfKChm0gmjmpXnU6GovCglg9AUIvZUYBtjbctgkhntXydAS5ZdLyC6HMAhGx x50Uue7L1ZiDJjS7npfUyXHu1VbFHoKtmotFBxzTtSHN6K6BFs/u0tz2HcvVuDstDNn+ vSkqXgxpidJY1xjRcgHgGjKRVHU1QCeIt5S0FkQaTlFm6ed2AaS1cOF6tQeUHllhjeoM vAqBolQ4KfAI+XXM50C3llhYUqx5L97Y8pGhnpDTmIaiS/M8QopRf6SluhTxn9YlAJ5b 1cioj3v25N/2Ag4D3cCRq7ENr8SfyfkHIUTDff/HFwSIuzAyOeC7/TlJxpguXxuyn61P YRfg== X-Gm-Message-State: AOJu0YxI0IV95JQfHawsIno5oWiZIMIDkdY+jrPMXgckypWQX+eppeZE IeRyxRxbJmQuzw8u/OBC/pyrkT6oyacfoHtY0SCIuxaIhHiWuBiy X-Google-Smtp-Source: AGHT+IEDe/GWYZeiy2EfqjwJoY80bKauV4ezn1oFKu6k7m4mEwGLf24tBhL1+iBH9VBnFvKgJRVStg== X-Received: by 2002:a17:902:fa85:b0:20c:e724:6de7 with SMTP id d9443c01a7336-211ab92a1c3mr28143105ad.17.1731426538020; Tue, 12 Nov 2024 07:48:58 -0800 (PST) Received: from localhost.localdomain ([240f:34:212d:1:76f9:c667:75fb:abdd]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21177e59dfesm95217935ad.181.2024.11.12.07.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 07:48:57 -0800 (PST) From: Akinobu Mita To: damon@lists.linux.dev Cc: linux-mm@kvack.org, akinobu.mita@gmail.com, SeongJae Park Subject: [PATCH] mm/damon: fix order of arguments in damos_before_apply tracepoint Date: Wed, 13 Nov 2024 00:48:28 +0900 Message-Id: <20241112154828.40307-1-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 809D6C0018 X-Stat-Signature: 6kync1j1knwq36b81ye3d7zg1joixqpq X-Rspam-User: X-HE-Tag: 1731426487-309988 X-HE-Meta: U2FsdGVkX1/yFzL+ovkvGBzA1AUH6ilrHJ9/HJk8b1QzaHgXVJzyTA049Oq1ptdp2TSN7BhBaq0vHp3962kNK2yhPBOnqZRIwBk2ad5lLxZEDMi9Dh0SJLJQYdbVolrD6XdjyUnTvKv1VZ/wya8+71iLmpxYikedOatblZnPKgG93Cp4cLPfmfDTS/jN8KHUbFzWfo8J+Iqey+hIDHHOAJahWeKyZRQ3qNqERki1kho2QnDV0xTrlr30/uZvq09DQbg3CBjLxftqbafzy0uSrmnYh4yE72JDJaXOV7pQT8L52eAhJkumybyR7Tk0HlzwB628YJdHcUoUOBagzetXzA1Nbg2PY46Fjim7ys2rZ4CF4BY6LjCXDcx1amofdQZNbgf3LmI1NCqCTrZvKDmlKLbeXTVBU9W15QNtP26lRm2BxH3w2i7pklwfJvNF7aMpfIsN/ZdBE09b+SgNogz1OfcOwBZn6cXN6KKvxMo+LfLMP0Sg/tRcPRgz0z1KBMKLf5jjKfIoI4svgCwZlhuX4Lq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.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 Signed-off-by: Akinobu Mita Reviewed-by: SeongJae Park --- 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),