Received: by 10.213.65.68 with SMTP id h4csp2133507imn; Sun, 8 Apr 2018 20:33:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/cSNgCnTPfQgNDgdahAX3C52tnohtnQOwmkyr2r0Goh+rBUvUtARBQadDiWEQYkqIWYLLu X-Received: by 10.98.13.23 with SMTP id v23mr27908601pfi.202.1523244782842; Sun, 08 Apr 2018 20:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523244782; cv=none; d=google.com; s=arc-20160816; b=XSdNWFYWGo0qqsDd9/TKDAiUFxX0Z1t6v2orT+lMeE4dOZ6wkacnIKN+ymIc2n7oQr jXt4rAd62tc5Eoy+02HGQDmTnlOqJkf0e3PexghUrFjvd2gpR9m7gZ/6slalOf91l1N4 PwvXlfUU/+LYgr4PFmbkCAH7bfUw/gX3GPVIQBlUS/TKeha75X+r7CF6jQu0tLwwMJRT RvC3D1+8pS2GmLNppJIEbTlX87N/aZ2qeRqaSEseUvehEi1y7MaxpGCROMitqlNCNv+A vXHmL3Y+7asGgcew6EP1F8FVR0NDB4Pd4Y897SOuukqBBuUlSlyUb9Ispbj7oX1YI+EI iJ8w== 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=94rIDVm4TmhiU7MtYukdxLFzyofvmvYPiKd6WlrmWm0=; b=MrgqsPKiw2ICpUG+BUZ2QiuFxTrWQIJcLVRhp/zVwZEAHsJepbijaAQr3I7ahxYArO IeuiwQfMxFbCpVVStBfWz+oiFADJwfpjAsNOraGVoiC/TGbosX7UdjcKa09LxfgBwEJf 4C/7uolgbyFZmJ2t7kIexsEBA+41GPxZ3Ah5aorA469tdFhK//f3Ic2XfQ+Spr6ijryb JGsDcqzDcTNg1a2Lgu2cIcTd1wMoiiX4eF6yVUfMe2jRhYshW8IX7InekIaQGQEwstRd ZQ8Qack5bmD3ldnbcllVHl+cnUN8t6z+GuYs2fxJopBeliJCOXgwVrVMFud5hBlCLDO9 Pc7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=PyhZcGap; 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 m1-v6si16018793plt.363.2018.04.08.20.32.26; Sun, 08 Apr 2018 20:33:02 -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=PyhZcGap; 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 S1752997AbeDID1b (ORCPT + 99 others); Sun, 8 Apr 2018 23:27:31 -0400 Received: from mail-bl2nam02on0124.outbound.protection.outlook.com ([104.47.38.124]:20813 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754617AbeDIAWH (ORCPT ); Sun, 8 Apr 2018 20:22:07 -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=94rIDVm4TmhiU7MtYukdxLFzyofvmvYPiKd6WlrmWm0=; b=PyhZcGapxSc5zIL0b15jQywnheU3EwtEsnsS0GQBneyoM3N4c6P5eQM/fEX5qSK2lwSgkikN27FMCJurT3pxSDEP7m+dB7tHtraYSky+nqO+YXW8Ri+SshyU8KwsnK3xSnftd+/XzP2DDEeVZZ/tJwnnjNPCRGrXkWwIKa0ddFw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1125.namprd21.prod.outlook.com (52.132.130.150) 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:22:04 +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:22:04 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Masami Hiramatsu , Shuah Khan , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 016/161] selftest: ftrace: Fix to pick text symbols for kprobes Thread-Topic: [PATCH AUTOSEL for 4.14 016/161] selftest: ftrace: Fix to pick text symbols for kprobes Thread-Index: AQHTz5h7Sz8myaZ1+UeLa7qb/SN4jw== Date: Mon, 9 Apr 2018 00:19:54 +0000 Message-ID: <20180409001936.162706-16-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;DM5PR2101MB1125;7:fODtCZZLy944M+OcDLO+Rl7SuVK5e8ZuFFHM2U+TTYS7Gyk+DdtlX5H6xNf3IQrUV3Nq8XWZWwWIcF7HrgWQn9/juqPAG7u/jwG0ftvZ/pmVDQjsJX/3v7UlPIvJSgr9by3+CdoyK1Ak32VbmSUjsonKuzVPdjL0A8vmctfoBe/xG0eA/SstEdCVtd0+cr6YXprkHZVwaJ3AVVSCgmvTBN/Butv2W1j2L337p7xV+CLHxniinj6nbcBI6t+c9Bjo;20:pc5yQsthZyEzv4EfW9ZrbCHZEuWGOKj6IFntvF1SGFIRZkp5OZap9uXVC0RJyTM3wNRsWcB8CNa1QxTdva9vHpQscgSpQarIEvsnGb2UGR9ILBNTwACPYMiG6UzxJm8uDYD4+7Mn+v5dlX0Tp47CLvUJHiDuSuapE2HIDKoIxVk= X-MS-Office365-Filtering-Correlation-Id: 663a641b-82a1-4c1f-7b40-08d59dafec21 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1125; x-ms-traffictypediagnostic: DM5PR2101MB1125: 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)(7411616537696); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1125;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1125; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(396003)(39380400002)(39860400002)(346002)(199004)(189003)(105586002)(7736002)(8676002)(97736004)(81166006)(106356001)(81156014)(305945005)(14454004)(66066001)(1076002)(102836004)(5250100002)(478600001)(2501003)(2900100001)(22452003)(72206003)(68736007)(26005)(86362001)(575784001)(8936002)(76176011)(6506007)(6116002)(6486002)(186003)(5660300001)(3660700001)(316002)(54906003)(110136005)(25786009)(2906002)(10090500001)(6512007)(3280700002)(6666003)(10290500003)(53936002)(99286004)(86612001)(3846002)(6436002)(486006)(4326008)(2616005)(11346002)(107886003)(36756003)(476003)(446003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1125;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: T5bp1p41t1vd7rjA5OWQqT52bwAugWQk9eftKAJId6X0+1C5OVHrmV6dDs4JIzsjl/hUXA6UX9XVbQjxotKI6IqhzxfV7wlUkCIBFbJhpvUtJP0LzQfNu1rY6Uzy3YW9lf5GXecIy/vzj/1Kr0Mluai3DJuT/QFeVdagLAuicNRMW4w5/8GYN8CtPE7pp80WodPNx2wl9pSVQSTyr/SOl4X6d1KowfdDyZBxcW9nXTlNL4ZRzB2Eo5xkEPi2GA7hDvtLMIvr9qN5KPCW5Zpi2N+zqpSCuhlxZ4nH/ASJDT3++E9SS5fSqfAtz4VokeX9QNvGC+NAEpfO/VS6pvcOpHJc5KF2h81e3wj5XparrSgw58QSsBY5KN6dShXuO73713Ln4CFZ42VdZkeIVjklH+Qjq+Ixv1RRtjR09lPVkNk= 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: 663a641b-82a1-4c1f-7b40-08d59dafec21 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:19:54.6606 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masami Hiramatsu [ Upstream commit 5e46664703b364434a2cbda3e6988fc24ae0ced5 ] Fix to pick text symbols for multiple kprobe testcase. kallsyms shows text symbols with " t " or " T " but current testcase picks all symbols including "t", so it picks data symbols if it includes 't' (e.g. "str"). This fixes it to find symbol lines with " t " or " T " (including spaces). Signed-off-by: Masami Hiramatsu Reported-by: Russell King Acked-by: Steven Rostedt (VMware) Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.= tc b/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc index bb16cf91f1b5..e297bd7a2e79 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc @@ -12,8 +12,8 @@ case `uname -m` in *) OFFS=3D0;; esac =20 -echo "Setup up to 256 kprobes" -grep t /proc/kallsyms | cut -f3 -d" " | grep -v .*\\..* | \ +echo "Setup up kprobes on first 256 text symbols" +grep -i " t " /proc/kallsyms | cut -f3 -d" " | grep -v .*\\..* | \ head -n 256 | while read i; do echo p ${i}+${OFFS} ; done > kprobe_events = ||: =20 echo 1 > events/kprobes/enable --=20 2.15.1