Received: by 10.213.65.68 with SMTP id h4csp2114982imn; Sun, 8 Apr 2018 20:05:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx49PlpX53Ov2EzQ9r3RU54gQM93M7KKMxHWR3V++qzqqfe7Q3e7z0W5Z/PEjp+B9Ni66gmx3 X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr36688520plo.357.1523243128032; Sun, 08 Apr 2018 20:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243128; cv=none; d=google.com; s=arc-20160816; b=rJ7mjeBKLbocXQn03dudlXmEVXGHpGJLXTg3mbJv268+zhjnCBzFlvy37q5/dFWrvN wHJ3U/x3/GeEz+H6PcBdLfANiaIPbYGCRXpRJcgT/a+/hI+OUk3qbnAD25kVOtzG5Ubv Xp3MNm/VF7CxtrSnlF6PjR8i0vXDbug7GhxYz5ihRNte75H4wSWTy9jKwZlFOiTFbAlp G/+uqmA0w20mbveUboI1dsH1aCPswqQAbMk8eHa3ejK3uR+iGFYIIVwdb+2+ydiMhQjr MvpTeyCONnUhFaL5e8UbGBpeFKui6YUCHOfiXzGz2lHPEIhSmhwbsnwAjf1L/etfPfNH CVIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Slf2OwMK0lwJ/oHNzqeUjh2YNbkTnGqTNNo1YRNnWao=; b=D+j7K+3D/5EHBiqwnpeqoTElJZ9MPx9hwlJyQHCIlwv7jAsCGVVK6uNCm4E9hreh+8 HjGwgtjWzuq0d8yuMNyFu7mytDdRBoMvaPqzbsW69uZMB5fZgpR3AdN86yfGTvxsrWmZ 8At8+DBzDnD5ILwtb0CKMhmGFgo8AWKwBidKXQrZMZdtBpOwo3LrxQ/HOf4PhCKruqsF 7aJ9CgU1Axmy7Flu6bI5W+T/nbEhd0eazna8yYxBj5v5opqgFcW9lnyfF0x44fYX2oTl dLjpZJVvvs8rRgHZXvaZvHTUJyJnXfotgHDTUC1eDPTXIvvFGnCbRNDIOeDRpWN3nef9 ti3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=BfSVdRSb; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si13533188plg.565.2018.04.08.20.04.51; Sun, 08 Apr 2018 20:05:27 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=BfSVdRSb; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755314AbeDIA0U (ORCPT + 99 others); Sun, 8 Apr 2018 20:26:20 -0400 Received: from mail-sn1nam02on0125.outbound.protection.outlook.com ([104.47.36.125]:42928 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755265AbeDIAZt (ORCPT ); Sun, 8 Apr 2018 20:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Slf2OwMK0lwJ/oHNzqeUjh2YNbkTnGqTNNo1YRNnWao=; b=BfSVdRSbha/dhITOQ4dY0pFMTVoAiXCAxFEV5o16J4uPyUv8NH9gbMHu3vUMhJFCBN7JK3eClR9xN4Er+U9Gsi95+b8sWNVRE1gf1rHiaQGswXTE1OBYeaYJWRKreOr/E+qMiY+HTms5/fV+P/dAZHfZPgJODnGMwtM7BIpsCdY= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0725.namprd21.prod.outlook.com (10.167.107.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:25:45 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:25:45 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Steven Rostedt (VMware)" , Shuah Khan , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 141/161] selftests/ftrace: Add some missing glob checks Thread-Topic: [PATCH AUTOSEL for 4.14 141/161] selftests/ftrace: Add some missing glob checks Thread-Index: AQHTz5i/4nx6HC62BUy5/SbBUXTNBw== Date: Mon, 9 Apr 2018 00:21:48 +0000 Message-ID: <20180409001936.162706-141-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0725;7:UP1kEWN+QDCB7T202nAgpbVUvBEoR8TVDWia5hWkZgyvOliJ6X9uWPC5CaxPlOMwYtSzv4k2X+uo+ajmbjWseDQrKlBthwb4+5O2OOz91H2RW6XDtY3hHAgcySiDam1j8I4irm/84Vl6XNDjCh9SPhjhUUavFYGQa26Q1axBB8grl7kybWkrCEFuuhZIG582MIyIQttL8z81DBm5VIQs8bdiT5gIV0K67wH/0KAE9cd117rVgsrF9o/5nubupqW8;20:ZBrCjea6E/Q41gEX0mxQBK2YQAm5oa7dua8T964WNrV5zFlPzVcY4WwDlRRUiWt1NuM9UBxlSeRwEGtRGeF6xdNHD1b0Y4qHIS+rSOByMLrwMvXAtlfyj0ZNI9DougyHkTjo9wKqf1CknuxdERsga+Nl9FdG94g2BYcJbW7rfko= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 076b2ff6-b22f-4eef-83d3-08d59db06f7e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0725; x-ms-traffictypediagnostic: DM5PR2101MB0725: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(42068640409301); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0725;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0725; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(366004)(376002)(396003)(39860400002)(199004)(189003)(6486002)(81166006)(26005)(6512007)(6306002)(4326008)(6436002)(81156014)(8676002)(97736004)(186003)(36756003)(72206003)(53936002)(107886003)(2906002)(966005)(86362001)(76176011)(110136005)(305945005)(10090500001)(486006)(3660700001)(102836004)(5660300001)(14454004)(476003)(86612001)(446003)(99286004)(68736007)(66066001)(11346002)(54906003)(2616005)(1076002)(7736002)(5250100002)(25786009)(8936002)(478600001)(2900100001)(2501003)(3280700002)(105586002)(59450400001)(316002)(106356001)(22452003)(6506007)(3846002)(10290500003)(6116002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0725;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 87UVLgrxdXiVF6NbIIk4MD+IpgngDKqP4xab+lBf1O1YB/OJjmH3axqaLQMX6lQmI+l+xTEydIrlNuTQLE2ZMAnv0YQ2rk3UFMjIVD1ui6D9Nz2RFbPLo0HUfRtCHh/Ytvy0uhVtPXD8VHk2Eag/dHpY/I4CfBqpDSnScgFJJZtEUbzPIJwGccX+DvUnT9hhgA8sKy2i3/XX6ETz8kdyQJK3K1BMzOBGKVpv/5NE4euIz3axQhkLKxfLuMrMrKH7dguN/8/RB+AAQrUi0b69+VYLkOFQ2DjlGENajQhSvs9WwXUBi2h8NB5GsceluoMCTJFY+Wvs3GKIi4YOOWRUsWGWWkbnSiFqSCuR0JL+8KTFFzUipJ2C+Zeg5cMQyUb0dT8LUi8MiFp4HgvdoJONtzDPXhcB6de+4ixZr02gp5Y= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 076b2ff6-b22f-4eef-83d3-08d59db06f7e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:21:48.6748 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0725 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Steven Rostedt (VMware)" [ Upstream commit 97fe22adf33f06519bfdf7dad33bcd562e366c8f ] Al Viro discovered a bug in the glob ftrace filtering code where "*a*b" is treated the same as "a*b", and functions that would be selected by "*a*b" but not "a*b" are not selected with "*a*b". Add tests for patterns "*a*b" and "a*b*" to the glob selftest. Link: http://lkml.kernel.org/r/20180127170748.GF13338@ZenIV.linux.org.uk Cc: Shuah Khan Acked-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Sasha Levin --- tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc | 6 +++++= + 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.= tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc index 589d52b211b7..27a54a17da65 100644 --- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc @@ -29,6 +29,12 @@ ftrace_filter_check '*schedule*' '^.*schedule.*$' # filter by *, end match ftrace_filter_check 'schedule*' '^schedule.*$' =20 +# filter by *mid*end +ftrace_filter_check '*aw*lock' '.*aw.*lock$' + +# filter by start*mid* +ftrace_filter_check 'mutex*try*' '^mutex.*try.*' + # Advanced full-glob matching feature is recently supported. # Skip the tests if we are sure the kernel does not support it. if grep -q 'accepts: .* glob-matching-pattern' README ; then --=20 2.15.1