Received: by 10.213.65.68 with SMTP id h4csp2111783imn; Sun, 8 Apr 2018 20:01:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx49a/6wDeceKfqYY2ZtlaQolUsHax8RQpP8o7fjbWgnxPctUcjEvYUsjUeMAPm+m9+pRF9Im X-Received: by 10.98.103.69 with SMTP id b66mr27487165pfc.151.1523242874062; Sun, 08 Apr 2018 20:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523242874; cv=none; d=google.com; s=arc-20160816; b=cCVFvwccDVjKUtHDsjQ7aKKT2ecys3ep0c8hFjZfHAwHcX5pHfnkLaZbflq+seNjSD fwZO9BblrC0qejFSioah4pzkJ9v60vPcDSLva0Dx5yoqmH7yWMSgxYl3iexAVjgNFrxj uzPrTollKRoNWLoGoIvZonRcXGhdxWnQH9ix8WtzxwLiT00iNeBTpc20b0rTC1XNVmZD x4fKVCbVBwVbqzG0/jjNjj7eTfrvElRCCoTtuNZcSQPdSNehDdcMETRiOTMOHY8C5SHj rxegUtnaWW/hA6Wd675dlr7HRz6Hs7trB1O8tVPJddqMb/eSLsZ7IHFrSOgyYMUTjs/g 0bBg== 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=zwLDA1MGCMviu6yLlmD3DJH1Yuy8GHqT2TbmDM1tT+NpKI1R17sZcr/blbI3lU+p6x 5WrN5T73xf82VJF7HDzoWsoE+ACpF4b67h1a+9TrPhLcZ9Gs3IBDfAr58tTWE6Yfb6tv wNLFRPcv1QVRobTgt0493Z6sZX8Ed6exbs2Q9jXR7wW8Kix4/O40XihfqVzQLtYSH+qY Te2J6yWAdTNiAxAUSOIHIuHj3ouFhwgiBu3fem16+OwUtEcXmwPOZyFAdbGHYK04YxlQ 53z5KrmoSraxEAen0as+6r/SmOx6VzVox75DmQOHJDElNkGItfcd3JPCcpJJndV59cfe qqDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Yo/dZugt; 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 w19-v6si13290689plq.156.2018.04.08.20.00.36; Sun, 08 Apr 2018 20:01:14 -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=Yo/dZugt; 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 S1753088AbeDIARL (ORCPT + 99 others); Sun, 8 Apr 2018 20:17:11 -0400 Received: from mail-co1nam03on0101.outbound.protection.outlook.com ([104.47.40.101]:48974 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752946AbeDIARG (ORCPT ); Sun, 8 Apr 2018 20:17:06 -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=Yo/dZugt7c3jstZybC0nsvccCJzSE86WueRNmQSTCRQADAaAT+gPz3Ni1bD41M+KqYPfhi1FC1cKThNpmNpTJ8DaLqLz+o1aVDIQsX6hYf/xVL1yEkr/syWXhpa896NqeCLwr6ce2rLxAIvmPLgzC9UxGWO++Rq+p1GnurnZBHk= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1127.namprd21.prod.outlook.com (52.132.132.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:17:01 +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:17:01 +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.15 020/189] selftest: ftrace: Fix to pick text symbols for kprobes Thread-Topic: [PATCH AUTOSEL for 4.15 020/189] selftest: ftrace: Fix to pick text symbols for kprobes Thread-Index: AQHTz5gUHZEFDASH3U+/kKuFYpUZMA== Date: Mon, 9 Apr 2018 00:17:00 +0000 Message-ID: <20180409001637.162453-20-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;DM5PR2101MB1127;7:+V0h+/ItuSM0cAACqBwX+OUwOM77ILzBf1WB3IwnO/8ZLrg3Gn99SMjwHfAkqgIyzO8GL2DlkBM3zxyh+XlOwUyNqHGnY8iOAdxCSmzgIKgY46jOnzKX+wc6WMJqr+PP8BrKUoyaR6kDMlmyl1XGK0daCxykh0R29uqVmNooyBm46hPXmM3NHs1DICk4TCDeCOt1ayyTOL5JR+TpnvAku7xmOjfinsiAZdbL5Bnqdd649Swae3pc4JtpCkah9YNf;20:DJDbFrfeLCX/JnutbU8s9oAa69p9TB9bJetfQSBrfcMNd5a5lG2VYrS5INe6fuNgd6NyT976PRiMrwhQTJpVUpZQ1XPqvvKQ3ljnVAQ/kjlJ4bcbr1JKjq4QLZR48LZdFx70/shu+1KmJB+oQROQgE+znG+o/vfBpU6yoJHSRcg= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: d8a10025-81cf-4b8d-8a56-08d59daf36fe x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1127; x-ms-traffictypediagnostic: DM5PR2101MB1127: 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:DM5PR2101MB1127;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1127; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(39860400002)(376002)(346002)(366004)(189003)(199004)(105586002)(186003)(66066001)(6486002)(54906003)(7736002)(26005)(575784001)(86362001)(316002)(305945005)(110136005)(478600001)(3280700002)(86612001)(10290500003)(25786009)(5250100002)(2616005)(99286004)(22452003)(5660300001)(3660700001)(2900100001)(81166006)(3846002)(2906002)(106356001)(6506007)(107886003)(486006)(8676002)(81156014)(14454004)(10090500001)(68736007)(4326008)(6116002)(1076002)(72206003)(102836004)(97736004)(11346002)(8936002)(476003)(2501003)(6436002)(6512007)(446003)(76176011)(36756003)(53936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1127;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 1Xyz8k48n7y2uV5834Dhr/u+JaYILmuI9Wqvi3VlOutuXJ09aDs/t/r41eFrAx1+LsVQA5n8bLTk+D5BDPmLXq0fBc+vKGB6pQHH/x5IROkWiWgquqLhJFFVWB3kKecmxWO8nzGJLKSFQLb+5ASt91WWA+Cr/IUzDPdumCeR44ZSvvABHJXwMhB5VdKBWEdgaEtAVFWtUJUFO738JFAlBjKwIxi0RYH0/ZcS7amfUsOe7IY3TuBPASd9VNBgYwOZgircdKZp6HpD8+WZaTLSLlhnHozV1A/KTVQRscTKBivkx+CDCXX1UUWKFUXtwELUA/4LDSbeSViE4KLwcmxQujogoJ1jv21X6UOmCxNk0lEPysOiVdQQ7X6/05Va7zo0hTQPAijtetKcCdjeLqR2Oc6JX4hota0As/ZNo0ixkMM= 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: d8a10025-81cf-4b8d-8a56-08d59daf36fe X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:00.8719 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1127 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