Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2442827pxk; Mon, 14 Sep 2020 13:32:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTatVFHuulLvLeBADF0+XyG92RU1I+6G/WwuMybY30cWnDmYQJ3q/6gtqk+qL98kWju5jg X-Received: by 2002:a17:906:e103:: with SMTP id gj3mr16294894ejb.153.1600115565949; Mon, 14 Sep 2020 13:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600115565; cv=none; d=google.com; s=arc-20160816; b=nol5DrixcJIP3gduRVtW4L9+6K3f/Dl4ZylYyZgBijGsy5Up1iWWpPbk27GHXY6JLl tREaiRpJEyJlZasntpn30sx6r26oWAcqF9V3bMR7iQCtbOteIVmKkQLKgYGjRTRN1D9G x6r1x/rghv2discWIVK2/MEU7HCGKpDV+bnoQdMxjDV8BXrISONyYpmowRADWs+iT6IA B2L77rnEk2FBdiJMGZCqNckERvqU9Bn+na3KxrYmt5HKYVYloO2ipawHptKGWUZ35FWS pf5jQiXZ+gepA5ScXP2GXIUbcuEdPlanV5eYFYrPCOCfWPYrjnf9GhXEBzqjtCU+9tE8 B6UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Y1KVa3xurs4GlWZdhzpCFiegs+d93bptxd2qYE3J8TY=; b=u++PWKksc9fuZwl5RU6IzoSAwCqXQZj4SYxvdHyyrKwLQTR5EEPs7hU/GLBzl4dJMX JKyYfA2mkHbFn3n+LolNSGrUEUY4JEF3VKndtBE9hRM6WRlyqkzo8QOnfi2PDFpSXfF5 xh5gEXcjbnaZENt8Y3Gcg26MNF3FwhFgmSslAskx4YUBiap/tMZo9kOeNBoonvB3tFqs Tw6+kCyuVC9SyO+Ehi2DL/pBuGRRFFA8yBZ49kenSgKs0IZ5AURI2V461Tp4275xIA3l 4MfqbgGkgu5NEOLu+y+IUwhDhWVY6rQnO+Lq9VW95yqbaCUbKLDqDf78+KPc04/FeVqY if1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ePy2qwvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si3659409ejk.275.2020.09.14.13.32.23; Mon, 14 Sep 2020 13:32:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ePy2qwvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725961AbgINU3p (ORCPT + 99 others); Mon, 14 Sep 2020 16:29:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:23095 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbgINU3j (ORCPT ); Mon, 14 Sep 2020 16:29:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600115378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y1KVa3xurs4GlWZdhzpCFiegs+d93bptxd2qYE3J8TY=; b=ePy2qwvNXUMAHE4p2T+2WOluoWJ6nV56cXyVCXPx0j6bmyCMcbh/gegQ8NktTHBHywrCnX 6v1Il+jN45PdTL/engNUj11JsV53xMCMsducmRlPTiOpqh0WlkbEWoSzbA6rWeSaMTkqO8 eS28TUsh7MXPXbCjRIUOwdmvBiL7Z1o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-344-g-lU0J8iNfq0hcKup-D5yw-1; Mon, 14 Sep 2020 16:29:34 -0400 X-MC-Unique: g-lU0J8iNfq0hcKup-D5yw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C677D801F9A; Mon, 14 Sep 2020 20:29:31 +0000 (UTC) Received: from krava (unknown [10.40.192.180]) by smtp.corp.redhat.com (Postfix) with SMTP id 5066E75120; Mon, 14 Sep 2020 20:29:27 +0000 (UTC) Date: Mon, 14 Sep 2020 22:29:25 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Song Liu , "Frank Ch. Eigler" , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Subject: Re: [PATCH 09/26] perf tools: Try load vmlinux from buildid database Message-ID: <20200914202925.GU1714160@krava> References: <20200913210313.1985612-1-jolsa@kernel.org> <20200913210313.1985612-10-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 03:25:39PM +0900, Namhyung Kim wrote: > On Mon, Sep 14, 2020 at 6:04 AM Jiri Olsa wrote: > > > > Currently we don't check on kernel's vmlinux the same way as > > we do for normal binaries, but we either look for kallsyms > > file in build id database or check on known vmlinux locations > > (plus some other optional paths). > > > > This patch adds the check for standard build id binary location, > > so we are ready once we start to store it there from debuginfod > > in following changes. > > But dso__load_vmlinux_path() already has the logic. > Also you should check symbol_conf.ignore_vmlinux_buildid. I wanted to have it not dependent on !symbol_conf.ignore_vmlinux which is needed to call dso__load_vmlinux_path also the idea was to try the build id vmlinux before the configured vmlinux locations, because they found the vmlinux in my setup ;-) I'll double check the logic again thanks, jirka