Received: by 10.213.65.68 with SMTP id h4csp2137752imn; Sun, 8 Apr 2018 20:40:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx489ir4vC5YatRIx0iRm5Xq/0BZaXRBBoE9YlG4PxCkQhpfv3zYtYLd/XufgwUX328p8bmgN X-Received: by 2002:a17:902:b081:: with SMTP id p1-v6mr1994822plr.31.1523245201904; Sun, 08 Apr 2018 20:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523245201; cv=none; d=google.com; s=arc-20160816; b=oFkQ0xTo9OEDrW+sgDyS7tSn64CHFNT9HCJboDldnb08sj440gaXVQrKjXlAzCloWT TZhHxhBepGf/og1oqH2pwz+cQdmixkZT221+9yboqRLNH5YL1eHh2gNTWGi2HpNdiUQz NMNLOlEE74oa/55zDMI0IE329kulqM/ib4UQgSuxqKpUrG4SekhArLmOPOcVZILPa3qO cwnHhxD8kXvnBx8Vn5X/wtDg9TvYMwxW5WvBERxp8vqZTg3EbJNJPUOTeR4CdrwdIh/Z 6PKNe1f5Od7h2XCva4lAuraek176hUXjmP9JWD3nS3RVJhweiiPcEc2JRKgkOah1oBYf tTxw== 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=WxhPgw0yZY8Z4mQZsqWd2SLHZIux9+lZxbJERa9HbLwLVoOax8DxakKwFsVdUzXX/m J5NWl6LU9lEjbl3Oc751P2nZI/zcRkEmnF27fUVRFRrhQrQm49xprWeVoCrQLYX/+DWa iCCKod22XZ014o3yskD66bFO9JLQeR0kuiadBOr+QfttMZWTgTcE1Ml4Utf+MeQzDxc5 t2AFkxEC/FcCG4HNXGRHUd/Q88RBad2ZMqh482WPfQSSmg/yRKIADinxLJS3ndjiqPuR BhzExabgGfPTQNcAcdgz6/EgGyfYoDy6vCzzXHLoLGqWqAsg1JM+Iw+Qs4tw1wZ6ET5l vshA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=CrRR98yM; 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 d90-v6si13459407pld.515.2018.04.08.20.39.25; Sun, 08 Apr 2018 20:40:01 -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=CrRR98yM; 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 S1754578AbeDIDed (ORCPT + 99 others); Sun, 8 Apr 2018 23:34:33 -0400 Received: from mail-bn3nam01on0124.outbound.protection.outlook.com ([104.47.33.124]:4000 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754420AbeDIAVR (ORCPT ); Sun, 8 Apr 2018 20:21:17 -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=CrRR98yMsL3MQpKq6fG2w1t5lB7b2Sr03kfbH1AmjFXBGnn9JgKg12f/CXKoYSFDqQu7Kkxd7+Yxd+rkeOuQB5H6eQG01Vk1xiyE8pPD2S0ZlxIZZanRcuBP+jCRKIeGDuras5zaYzajw4/Dny8Spd2Kwp/jIEhVDRoyYWX7esg= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1110.namprd21.prod.outlook.com (52.132.131.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:21:08 +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:21:08 +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.15 167/189] selftests/ftrace: Add some missing glob checks Thread-Topic: [PATCH AUTOSEL for 4.15 167/189] selftests/ftrace: Add some missing glob checks Thread-Index: AQHTz5hcBSHGoyrOuEKxJ1DiBxDZLA== Date: Mon, 9 Apr 2018 00:19:01 +0000 Message-ID: <20180409001637.162453-167-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB1110;7:Y5MmyOXbCOnabYj59irBe8YBZU53Gekf/+MNTAHGM48yIYAyoB3o1RD16hqZaX1vrRW4exbiNIlycCdzQVqe2kkJCkvgnHZW3f+U+MDpkJ4wKUVhoaNfhucJbaVx0KHWzh6SuxH+Ubjnzxs2ZAmaL8GGp2coD/tLubV7G6PbyrQ4nyT3sZQY3jJ/4lAl+kqHESxzg17KaYrd7J/w5e39xM2R+O7KesFHpsGoBaf+gj31/31TDf8rfqEyGHWugt6n;20:/GJfHLiolPo+ZAKcph4oFfeUjEGqk6qMjRGNG0eXLtgJsqUaDJYV4s3n0R7ZaN/wcON1kAOgcmNYUmOGnGpIsQLukuBEJ+Ie+CCgooIpx2qsb3zDSE/M8QTduYSpfFGh2kQaGPhsDjLhdWJUmp7C9riyqYxE4jNdnX6BpSW5ib4= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: f06ba3b5-5702-4eaa-d6f7-08d59dafcabb x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1110; x-ms-traffictypediagnostic: DM5PR2101MB1110: 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)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1110;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1110; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(376002)(366004)(346002)(396003)(39380400002)(39860400002)(199004)(189003)(5660300001)(478600001)(86612001)(3846002)(6116002)(106356001)(6486002)(72206003)(25786009)(10290500003)(8936002)(6436002)(76176011)(2616005)(6506007)(2900100001)(97736004)(486006)(26005)(36756003)(10090500001)(81166006)(8676002)(81156014)(59450400001)(102836004)(2906002)(99286004)(11346002)(476003)(3660700001)(66066001)(6512007)(86362001)(6306002)(53936002)(966005)(105586002)(186003)(5250100002)(14454004)(22452003)(6666003)(2501003)(446003)(7736002)(316002)(1076002)(110136005)(3280700002)(54906003)(68736007)(107886003)(4326008)(305945005)(22906009)(217873001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1110;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: 8Tugn9Weh9uIGYDAZYQb/+PeoqSL65dlG/0QTQ5uMlmADLT0JWKmNJuDhylw998TAVuJaMR66HBek8UmEtylwp+pla2Z+GZfO5r6O4miD6l6wuAENEmc4VdEoAcLLW7f84hSqsw7m9x+6heL1t3UGKdwyaHB9XeVFOTiVOmZ6OoYbKB8wEoOSDV31t2u9SiyvaFVnHIhY+BXl7CxM6NCxCK3njx931d2dy0ESbnlyHexcQP7X3DXk4gQjVtab33bDPGLHI+HIQua7DwpjFMnIZqgMzD+Rfba+mCiNOFDjZ2Th+Y9I2C+e1NGTY3m7SpbKJ3MglCDsalrnu9QcDxP4jR7Wqs/SI/88pJHfCjUqswq7u9bxcK1LbFv3t7szBX1sC83HzNZXjrV72jg24+cpIpvarkW1YpkMUG3d8SNQ3g= 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: f06ba3b5-5702-4eaa-d6f7-08d59dafcabb X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:19:01.8617 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1110 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