Received: by 10.192.165.148 with SMTP id m20csp566350imm; Wed, 25 Apr 2018 04:23:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+zc+UoWknLSwMS4gGzCqbIil9xFOvKjRrg9J4Y1LKU5vxusXkzFTq8J+uOlv5kfd+oYtPv X-Received: by 2002:a17:902:988d:: with SMTP id s13-v6mr27915486plp.30.1524655380090; Wed, 25 Apr 2018 04:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655380; cv=none; d=google.com; s=arc-20160816; b=JBmR9Dvo5TFQ3gNiNUY5W8d3h2UgTf1I+RFCXy9pVADsuEohn21Rwo8oWZqvArz0Zg dr/WXW6onrSdUwVw/WcbR9wy6Eh0ynDmKR+Ekyf7aJCNTgGeW4vPt7CFtKipI16qRfGW l0c0M2zB9UiBHrE0fsVDJSiW5FsYMw9tjAdO2ALLgzC0D9FpZehlihBDJ6wdw29YTe1Q vEgWMHBXRWBEqvrO3k3V84SCjwgmlQmZgrdWlaWp8ij3UPsTF069JuY86F/1du6+yVv3 CCsbJoJXyeWpgdQzCwhx2Fs7sr7zyE398HODDr4jxRDLIQ6YSSM9d1tLh7lyx7jXrka+ LHug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7IFqM+nvvSXntBnMAYPrhI0tMJ+mpDECcouC8Uoc65U=; b=evbKifh2oi0PUjECioeRk1yrRJEHx2SfOe22EHo6FzVb/ECNkKc5nXKiiC5JQC2CJC TGjJjYi+dvW7WYAkbJ+pYz1+WlfiRFi27UAzoVYztkngdKoAFvK249E+q2KSsiyxWf+3 OjlVOqz5SQcWICmZbAdE+W0lI3uWF0s6nVSL4NDjxHQpJpIsColCf3xcAjqkTevA1f+8 4KIWfBYoNITu3+Hmzh3T+Qqkz6gg3xSDVL5aNwC/7lrrIssuo6r8HzH/n3ii0OF0sEQe s3jbR5LW34H2aso+E5luMKDdfybTWqFyZmTKSm6PiK9ZUe1iD8ObIWkZ8m0VBx+wkEBy 4+zg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si13343170pgc.166.2018.04.25.04.22.45; Wed, 25 Apr 2018 04:23:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753691AbeDYKjs (ORCPT + 99 others); Wed, 25 Apr 2018 06:39:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51926 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753648AbeDYKjm (ORCPT ); Wed, 25 Apr 2018 06:39:42 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CCD2D36; Wed, 25 Apr 2018 10:39:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , Russell King , "Steven Rostedt (VMware)" , Shuah Khan , Sasha Levin Subject: [PATCH 4.14 030/183] selftest: ftrace: Fix to pick text symbols for kprobes Date: Wed, 25 Apr 2018 12:34:10 +0200 Message-Id: <20180425103243.798462067@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- 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=0;; esac -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 ||: echo 1 > events/kprobes/enable