Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7156014ybi; Mon, 8 Jul 2019 15:46:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDE2w22vYqsLXK8c4KvGuUz7FexT2Wu9LwX+L3jZDseCw/L8cvLofp5qWVJzIQGfPcViQr X-Received: by 2002:a63:6b46:: with SMTP id g67mr26654088pgc.45.1562626014750; Mon, 08 Jul 2019 15:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562626014; cv=none; d=google.com; s=arc-20160816; b=NWYzUdbKEV5mRyrZqCyRSUuIzGBoBzXkBKwve7AsOWa7rTmTUBZLuxo8OsovHjJLjY 7zKMlbAhP2BszRa/Q0upULpKG1pFoiUHxrtSQfJ+MlW2UgcUuRxi/wdty4pBTxKbH/CR w84K0NewiZGCT0T/uK+O4xlPwl8LxNSXjHN+vPhPYch7PT2H4RRmSk+iGPvF6rFQHxlr k8K6traPOnWqBqQVPPMJu5LHiZA5tguJE6gAbp2erNPojsEfA5I1FVR77OCdoeKlI0SI aUY+mci3Q6lMwKlX1IvUTID75Cj6y3tYPYvFAZ3DDL0kpS4hJrdyfYgQ4I6qOy45DGLC fC5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GK0XrAXCNa8+vz+O9ibkSmWNypFusF9qJjprnNN5ia4=; b=XjM8I/CJHi/lTXl8EyqluamJnGl4iyOdkVcpeYswHl1jn6w4jKzzTJ4LWB4263dIDg MkD9bo5Ppd6Di0Xgfic/d2Zmc2RDcQzgOQBgrQRTZXnXXT3SBzdX4HGEt47/EjOtdJ4S mFEJ6LlJPR5+TBxoJ7eUqCcTC64J6ew+JbLWn2KHFYSuLIiku+w8f3MUgU6jxkiO+rJG l2USRBfnbPe/UwgscBKdFmP3Oi1Ml6F5IGKdhRLg2k0EHEOTLL5Y57rytAI9ziExglyB jQUMS1PKckhxuBKB/ZGluXK0qawGWmJAMhL6gtz7hXRM58MoC88N/M/RPdH53yQ0aOyt 76MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i97si19970202plb.50.2019.07.08.15.46.39; Mon, 08 Jul 2019 15:46:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732251AbfGHTHE (ORCPT + 99 others); Mon, 8 Jul 2019 15:07:04 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53298 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728461AbfGHTHE (ORCPT ); Mon, 8 Jul 2019 15:07:04 -0400 Received: from 1.general.cascardo.us.vpn ([10.172.70.58] helo=calabresa) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hkYyc-0002yW-96; Mon, 08 Jul 2019 19:07:02 +0000 Date: Mon, 8 Jul 2019 16:06:57 -0300 From: Thadeu Lima de Souza Cascardo To: Steven Rostedt Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , Masami Hiramatsu , Shuah Khan Subject: Re: [PATCH] selftests/ftrace: avoid failure when trying to probe a notrace function Message-ID: <20190708190656.GR4306@calabresa> References: <20190708181933.10286-1-cascardo@canonical.com> <20190708145618.6649f397@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708145618.6649f397@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 08, 2019 at 02:56:18PM -0400, Steven Rostedt wrote: > On Mon, 8 Jul 2019 15:19:33 -0300 > Thadeu Lima de Souza Cascardo wrote: > > > Check that the function is on available_filter_functions. If it's not, > > mark the test as unresolved, instead of failing it. > > > > Actually, I sent this out a while ago: > > http://lkml.kernel.org/r/20190322150923.1b58eca5@gandalf.local.home > > Does that fix it for you? > > -- Steve Yes, that fix it for me, let me reply to the original message. Thanks! Cascardo. > > > > Signed-off-by: Thadeu Lima de Souza Cascardo > > --- > > tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc > > index 3fb70e01b1fe..e4dff034da12 100644 > > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc > > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc > > @@ -26,6 +26,7 @@ test -d events/kprobes2/event2 || exit_failure > > > > FUNC=`grep -m 10 " [tT] .*\.isra\..*$" /proc/kallsyms | tail -n 1 | cut -f 3 -d " "` > > [ "x" != "x$FUNC" ] || exit_unresolved > > +grep -n "$FUNC" available_filter_functions || exit_unresolved > > echo "p $FUNC" > kprobe_events > > EVENT=`grep $FUNC kprobe_events | cut -f 1 -d " " | cut -f 2 -d:` > > [ "x" != "x$EVENT" ] || exit_failure >