From nobody Wed Dec 17 08:17:59 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 777D6C4332F for ; Tue, 31 Oct 2023 04:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236257AbjJaERw (ORCPT ); Tue, 31 Oct 2023 00:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbjJaERv (ORCPT ); Tue, 31 Oct 2023 00:17:51 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01331C0; Mon, 30 Oct 2023 21:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698725868; x=1730261868; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rpcGncgm1Z5BymoCaEUZ/jhYu8BnNz8T00kr7N/RoqM=; b=ce9nlv9nlKz7Wys4kp5cLSrvIC3B35Omdn87VkrMdSy+KbHqamV0HmSI IiLVHj9WF5g7t+AMrC+tVzmGtibma4OPmvJ/sytoOxDiLv5oqHvDLzTBb DbhI50sNP1f5LiLOYPf+AnF0R3PVpGcgltnIjPCh8R53p7nyMk/vVeqK+ nGdpMmwMijAo1cn6OUPeamWy4qB8RO/kpNEJt5f3uJzAt87jL/9nebgyn mUX2CTwG0ZDl6PjpcHWw5U6zDkKaXluu6lOB9+xsS47rUgiJNR36grspC oLqFy1dXSF3QYXLHp6A8kvtwNBKBRpUj3BhCFmqOTOBHsSKBR1GpQuyvd w==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="367557014" X-IronPort-AV: E=Sophos;i="6.03,264,1694761200"; d="scan'208";a="367557014" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 21:17:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="884089007" X-IronPort-AV: E=Sophos;i="6.03,264,1694761200"; d="scan'208";a="884089007" Received: from yujie-x299.sh.intel.com ([10.239.159.77]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 21:17:46 -0700 From: Yujie Liu To: linux-trace-kernel@vger.kernel.org Cc: Masami Hiramatsu , Steven Rostedt , Tom Zanussi , linux-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH] tracing/kprobes: Fix the order of argument descriptions Date: Tue, 31 Oct 2023 12:13:05 +0800 Message-Id: <20231031041305.3363712-1-yujie.liu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The order of descriptions should be consistent with the argument list of the function, so "kretprobe" should be the second one. int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe, const char *name, const char *loc, ...) Fixes: 2a588dd1d5d6 ("tracing: Add kprobe event command generation function= s") Suggested-by: Mukesh Ojha Signed-off-by: Yujie Liu Reviewed-by: Mukesh Ojha --- kernel/trace/trace_kprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index e834f149695b..47812aa16bb5 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -1020,9 +1020,9 @@ EXPORT_SYMBOL_GPL(kprobe_event_cmd_init); /** * __kprobe_event_gen_cmd_start - Generate a kprobe event command from arg= list * @cmd: A pointer to the dynevent_cmd struct representing the new event + * @kretprobe: Is this a return probe? * @name: The name of the kprobe event * @loc: The location of the kprobe event - * @kretprobe: Is this a return probe? * @...: Variable number of arg (pairs), one pair for each field * * NOTE: Users normally won't want to call this function directly, but --=20 2.34.1