Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2409432rwb; Fri, 2 Dec 2022 09:21:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf5nGrAqV4o2gNa/tADIv+MX8ips2K6vCmsluwxI+XP5REeR4qKdsnArBtamSQPuzpocfUy1 X-Received: by 2002:a17:906:f896:b0:7bb:cdd8:94e7 with SMTP id lg22-20020a170906f89600b007bbcdd894e7mr33084131ejb.369.1670001690423; Fri, 02 Dec 2022 09:21:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670001690; cv=none; d=google.com; s=arc-20160816; b=PY0lRNEbrjIydPbq6IRRD5Ut6dF1A8wID21VFIbM/L+Yf0S47dG8mxGR7JO/3MgHff OZ39Nf6sc2Y0nUhnKyHPkqir8FKrtTGv/FrYIj87oZTlQAYIGvM7YMWib4TkAEcBBQmW KFiM4tJSFvsPwgmrFGbmb5LC9UMLWDLqIYiX7YCU9SUqWdrt4JWWsN27jXqcAPDLolyS r0EJ+8PUtoqkFjNPjKhfxmu0k8wmLV1r8DnRSeYsrTFUedDYbumiq9jrMpQ1onVh+0bo kJzi39HLT6Ho3VYOeLv3kjj/G0qdp3MXopXQWRxBMDwaQXXfSj7p2//YsGglCVWrALeN KaVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date; bh=nZFRs+fILvvpuvCM29qe3SN4siF5TtsVVYM/HbllvSA=; b=M3HbDfouqkrk8x2O2PNCE66mNX352PZ74M4wjlDVMH3Af1GMfaLcw0QRkffKQXJs3s geLvcp0NMarAiKX2qKSsp5sfhYRmrb30mKsMxW8c3sybs1656Ak2f/w5BSkceN6OT2/N VKWv8AbP16RzP5dAb77+RLR2FrchQgJDj8e4iYbRJZO/Qofm7vaBf2QXVB8ZEaz7712j JthklSMB1CJR8cGKV5OCrxjXLNxvhoXENhpJXVCQTCl3+3++TVaGzK/BwJw+VHJ6nV1i bLHcC7r+AbbDTspaNNamiKpi7ckAKX0hHqRl2z6z4SfBZk9QWFEbpKoe9L5NMq/BZ02+ IkVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a1709067c1300b007adacdfd08asi5382317ejo.295.2022.12.02.09.21.08; Fri, 02 Dec 2022 09:21:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234398AbiLBREl convert rfc822-to-8bit (ORCPT + 82 others); Fri, 2 Dec 2022 12:04:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234179AbiLBREP (ORCPT ); Fri, 2 Dec 2022 12:04:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4830CE802B; Fri, 2 Dec 2022 09:03:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DDB57B821F7; Fri, 2 Dec 2022 17:03:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98815C433C1; Fri, 2 Dec 2022 17:03:33 +0000 (UTC) Date: Fri, 2 Dec 2022 12:03:31 -0500 From: Steven Rostedt To: LKML , linux-kselftest@vger.kernel.org Cc: Shuah Khan , Shuah Khan , Masami Hiramatsu , Tom Zanussi Subject: [PATCH] selftests/ftrace: Use long for synthetic event probe test Message-ID: <20221202120331.343a821d@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From 8bb1734388b89bdb2ac176882786dc02b7df92c2 Mon Sep 17 00:00:00 2001 From: "Steven Rostedt (Google)" Date: Wed, 30 Nov 2022 17:31:34 -0500 Subject: [PATCH] selftests/ftrace: Use long for synthetic event probe test On 32bit the trigger-synthetic-eprobe.tc selftest fails with the error: hist:syscalls:sys_exit_openat: error: Param type doesn't match synthetic event field type Command: hist:keys=common_pid:filename=$__arg__1,ret=ret:onmatch(syscalls.sys_enter_openat).trace(synth_open,$filename,$ret) ^ This is because the synth_open synthetic event is created with: echo "$SYNTH u64 filename; s64 ret;" > synthetic_events Which works fine on 64 bit, as filename is a pointer and the return is also a long. But for 32 bit architectures, it doesn't work. Use "unsigned long" and "long" instead so that it works for both 64 bit and 32 bit architectures. Signed-off-by: Steven Rostedt (Google) --- .../test.d/trigger/inter-event/trigger-synthetic-eprobe.tc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-eprobe.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-eprobe.tc index 6461c375694f..c2a8ab01e13b 100644 --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-eprobe.tc +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-eprobe.tc @@ -14,7 +14,7 @@ FIELD="filename" SYNTH="synth_open" EPROBE="eprobe_open" -echo "$SYNTH u64 filename; s64 ret;" > synthetic_events +echo "$SYNTH unsigned long filename; long ret;" > synthetic_events echo "hist:keys=common_pid:__arg__1=$FIELD" > events/$SYSTEM/$START/trigger echo "hist:keys=common_pid:filename=\$__arg__1,ret=ret:onmatch($SYSTEM.$START).trace($SYNTH,\$filename,\$ret)" > events/$SYSTEM/$END/trigger -- 2.35.1