From patchwork Fri Nov 15 18:20:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13876665 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 0A3A6D68BCD for ; Fri, 15 Nov 2024 18:20:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 39ABF6B00A9; Fri, 15 Nov 2024 13:20:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 34A776B00AA; Fri, 15 Nov 2024 13:20:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2124A6B00AC; Fri, 15 Nov 2024 13:20:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 027FF6B00A9 for ; Fri, 15 Nov 2024 13:20:29 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 103BC121BF2 for ; Fri, 15 Nov 2024 18:20:29 +0000 (UTC) X-FDA: 82789143486.05.2C36853 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id 30693100010 for ; Fri, 15 Nov 2024 18:19:01 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="bH8mnw6/"; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731694763; a=rsa-sha256; cv=none; b=YXSysJodggBNjbfk9tpQW7jS3tEiIUgSGl6UP+kEeClK9iXXYyWT2+tQfBUFgS2paBbfsl c8OGOH+zto1oFMbqhhKTntA8dx8N5S0tk1emENoPW6o5aN1e4I89yRXnKXSUtS5gCtgtin 6qJGZMJQ7qldvW2/f6HWoXo2muF3t9Q= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="bH8mnw6/"; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731694763; 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=89kKrBbp4CSMYkDLhHaNDpjYBalGAj1n/tDf9QdCKi8=; b=pVgHzs/+KXrHGjyqM4ZsLMjMfmtzJsFO+A4N5HYtdvkHdiuNkiB/iSewyF1GqsoAHsQuqj Wt0GhnX1CcZ8ZGwcjarYM7g6LzLaV84lkLm7M4MD1heTUom7jjcqwKqj3FRNzf2xXDt5It o3Dy7iOhMrDJyaW9KcxB6vvfOgvsW3s= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3E1BA5C576A; Fri, 15 Nov 2024 18:19:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 028E0C4CECF; Fri, 15 Nov 2024 18:20:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731694826; bh=QLvF9Itl9shxQblgQCJX6lFfL008SE7kFJDmbFl2xFk=; h=From:To:Cc:Subject:Date:From; b=bH8mnw6/M5E0nJjuC15yc9XPrnq8Pf61PmV7FxetOjend/gusHFq9AyU7RG/UkHy9 Xt3xottVcZbQaBxh8x0/WyEGhUtj7ACbbx3PlIO7Qj4p7sO7nEIQtN9AOkyzxNBGL4 Qmntvk0T7IPneDFdOdT1rBU4Ce8FEEquUMAFlb5ABiOG2Jm1lQteci1NB5pBsyiD5T 3UdvxSlzuRVaAvMeheaUJamQcjFE0N8Kze3xdXzwpk6DS4kCuiQnXqQZgYySf6sSm3 +TAau+4tZpY1UrfRcYCUldvj4R9CTMqV/MiGc6QYZB55ZcXXQyyXIydRlwM5b7Dr/W fxbdjkeX76n3w== From: SeongJae Park To: Andrew Morton Cc: Akinobu Mita , Masami Hiramatsu , Mathieu Desnoyers , "Steven Rostedt (Google)" , damon@lists.linux.dev, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, stable@vger.kernel.org, SeongJae Park Subject: [PATCH RESEND] mm/damon: fix order of arguments in damos_before_apply tracepoint Date: Fri, 15 Nov 2024 10:20:23 -0800 Message-Id: <20241115182023.43118-1-sj@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 30693100010 X-Rspamd-Server: rspam11 X-Stat-Signature: dxz3gc1q8idbtwdzua66gf6kodri58np X-HE-Tag: 1731694741-6486 X-HE-Meta: U2FsdGVkX18vgwdBd8j9pr5ZooIm6xAGEmB7cAT7Mj9M60ffO5WfbeeRf5mVdLPU8JNenVM8XvFHawJpAP4I4a5mHHNUkPjySi64LTSpBNFzJfFWmJP1A3xSk+q4aduT94/1xdKmGP6CxNo58KC/wOVGEybcQ1td7kIwQ5+p/ewpmyvBM+fx7tuOgcWKbBpEGXFpd8fm91q1LzugxonxvyoHkmszu7FJhqWevYAodUm+p3aBPESL4L14Svy7HymIshNJHDI3biMlXbXN4GQv+sw5RyIrKnOS6vTpzxu9LF9jv5E6uzcqhq9RsWeSXGrJhciEJwNLC7WQST9nfWkggdBE/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9rArHbesz8fHPCwlj8xk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.011159, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Akinobu Mita 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: Cc: SeongJae Park Signed-off-by: Akinobu Mita Signed-off-by: SeongJae Park Link: https://patch.msgid.link/20241112154828.40307-1-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),