Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2730647ybi; Sun, 26 May 2019 06:48:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUYCPa+kbWj91oSbLCKROFAu6CC1Unn0HytdzHRGFW4Uypn4Ekfrl3tKnuVI8uKs7G3JH7 X-Received: by 2002:a17:90a:228f:: with SMTP id s15mr23960578pjc.10.1558878533252; Sun, 26 May 2019 06:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558878533; cv=none; d=google.com; s=arc-20160816; b=LS/f/oG2zzKdNHDUqumfjfIjDPrZ95oX45fJuHnnfgIRJuZyysTomyQQVmpiImdJCD ie1M1zzRdMDUYzkEWqjc/k0EkOByj/3OCMr1lhY/1GZBXZ3k9N7HmvqpUwVauP8HWunk bmRd3VfKYV+vBtn2Fw8K09v92dXIndirQIITYHshXz+v1nnjlbsQT8qjWauMPWDCCvm0 BgsullBDDshnf8skjkFIXaPPerTIHmX9B8BQ0G9AfBsx5fv75R3QdthRDYawzyqcpskv Zuy/Nzkg/LccB9WV+5hB80bYibJzIrb/Fk6NpSxQL3GpSThe/X1DhzzPschPgon13pD1 Anfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DSvmYwD8wVeEVGhdp+1gjjG0iJdfY59pGMTuo32C6FA=; b=vXOUySPirFMENHDJrR5so9FbuXJFC69EN+huvBGB/iIzLyxpOn99ZRB4xlsWNv0geK YF/bGy63tg8OBhahkH5/SdEHsnpsL5ABAhJHVY/1sdMWCn8KLtPysWSITeKI/5OvmVIq 5jJDQ7wYgDjyccvh0dmrtHQWmbrxd3PVBHN1wQCxzF7dZI7Nf7NAdoljNCYMUCsmH3iX 372drTK0ShbAFliHmufr0i6TnEmzHcUH83biuZfJMJJ4W8pORw07hn8+0UVP3B89IzxA PQB9AjLtUFQ90QJwjWT67m6ZHzRqQmZOINlLK4ghzfMysva/6QFlMGaYVQm4GLOoTHzf Yxvg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j68si16189962pfb.268.2019.05.26.06.48.36; Sun, 26 May 2019 06:48:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727805AbfEZNJ7 (ORCPT + 99 others); Sun, 26 May 2019 09:09:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56648 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727708AbfEZNJ6 (ORCPT ); Sun, 26 May 2019 09:09:58 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1AE852DD43; Sun, 26 May 2019 13:09:58 +0000 (UTC) Received: from krava (ovpn-204-45.brq.redhat.com [10.40.204.45]) by smtp.corp.redhat.com (Postfix) with SMTP id 68F435C221; Sun, 26 May 2019 13:09:55 +0000 (UTC) Date: Sun, 26 May 2019 15:09:54 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Stanislav Fomichev , Song Liu , Adrian Hunter , Andi Kleen Subject: Re: [PATCH 05/12] perf tools: Read also the end of the kernel Message-ID: <20190526130954.GA16567@krava> References: <20190508132010.14512-1-jolsa@kernel.org> <20190508132010.14512-6-jolsa@kernel.org> <20190524181506.GE17479@kernel.org> <20190524181717.GF17479@kernel.org> <20190524184607.GG17479@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524184607.GG17479@kernel.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sun, 26 May 2019 13:09:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 03:46:07PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, May 24, 2019 at 03:17:17PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, May 24, 2019 at 03:15:06PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Wed, May 08, 2019 at 03:20:03PM +0200, Jiri Olsa escreveu: > > > > We mark the end of kernel based on the first module, > > > > but that could cover some bpf program maps. Reading > > > > _etext symbol if it's present to get precise kernel > > > > map end. > > > > > > Investigating... Have you run 'perf test' before hitting the send > > > button? :-) > > > > > > > > > [root@quaco c]# perf test -v 1 > > > 1: vmlinux symtab matches kallsyms : > > > > > --- start --- > > > ERR : 0xffffffff8cc00e41: __indirect_thunk_end not on kallsyms > > > > > test child finished with -1 > > > ---- end ---- > > > vmlinux symtab matches kallsyms: FAILED! > > > [root@quaco c]# > > > > So... > > > > [root@quaco c]# grep __indirect_thunk_end /proc/kallsyms > > ffffffff8cc00e41 T __indirect_thunk_end > > [root@quaco c]# grep -w _etext /proc/kallsyms > > ffffffff8cc00e41 T _etext > > [root@quaco c]# > > > > [root@quaco c]# grep -w ffffffff8cc00e41 /proc/kallsyms > > ffffffff8cc00e41 T _etext > > ffffffff8cc00e41 T __indirect_thunk_end > > [root@quaco c]# > > > > Lemme try to fix this. > > So, I got this right before your patch: > > commit 1d1c54c5bbf55256e691bedb47b0d14745043e80 > Author: Arnaldo Carvalho de Melo > Date: Fri May 24 15:39:00 2019 -0300 > > perf test vmlinux-kallsyms: Ignore aliases to _etext when searching on kallsyms > > No need to search for aliases for the symbol that marks the end of the > kernel text segment, the following patch will make such symbols not to > be found when searching in the kallsyms maps causing this test to fail. > > So as a prep patch to avoid breaking bisection, ignore such symbols. > > Cc: Adrian Hunter > Cc: Alexander Shishkin > Cc: Andi Kleen > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Peter Zijlstra > Cc: Song Liu > Cc: Stanislav Fomichev > Cc: Thomas Richter > Link: https://lkml.kernel.org/n/tip-qfwuih8cvmk9doh7k5k244eq@git.kernel.org > Signed-off-by: Arnaldo Carvalho de Melo works for me Tested-by: Jiri Olsa thanks, jirka