Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2766140ybk; Tue, 12 May 2020 07:39:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKBSC5YxFAIuOnryke75qQkxRntR3G+RBKbgbBZO5YMoXhCTb64r97J5DGu2xPfTh2ffkDa X-Received: by 2002:a17:906:af6f:: with SMTP id os15mr18438843ejb.78.1589294364630; Tue, 12 May 2020 07:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589294364; cv=none; d=google.com; s=arc-20160816; b=CXUIeF2twOv8luCX8EA3HNp0ZREsmQU/sd46Qjg+ZYu245fPQD8WIoGHEvS0fvhBHW Ls+edsnTIBe2jcxII0acnJXhbLyEBp39e9gRs8nrUZtjzG4RTgbzJ3tNE0N6wUbxoOAP lB5A3gLTghGFdxeKYZos9g7QGHto2TPI361kYpF6TyjVXT1Gr90zzmCtkrY6i6tqeF/5 JTgRkjU5Ul6qnZ1Gl+OApq4kZXXbu7YPwOdJi+HcOH9OraArMIidWDUNrmxa9GkJ2kI3 BZYud3u9Nbb30Ej735+KylTGSJkKRszA0OBuy4A+sFRPP6bPU5f60Og82e9FjzRiU0k8 Isyg== 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=Y3f4zptkSRcSxluqEOKgN4rMXqWWdxu/lC4FoXf5Ak4=; b=WXLTej3wMAP22XlAULOp02nJDtgts8H7fYUpU74/VU+tP6ZprwN81joCXmDx/okXYI KJclK7r4VX39OOejGCcWvVcSo0zTkQq7z+78T4MJW1v55PkjqBiUZUpV7xQUKB2BMQhl 6Bapn2sQJW8hEg0/BzBSDrqnrE8TajuhZsKymYAONFD5ANZzMXi+FaxgkMTYMlZuQSvd xr+3tAXzr/R+r7kpaXjtyiJOFVD4JVUOA2fCGiLKGrMf75nBrcs3R4ielaWiOUPdYNcA e+U7iTx9FDHKDfabJht+W/4s2lAqHuAlm4x4NOJUfru1HFxwvaJo5qfTaQR69Z1Ig+q2 XA9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XvWp9hth; 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 a42si8159166edf.186.2020.05.12.07.39.00; Tue, 12 May 2020 07:39:24 -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=XvWp9hth; 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 S1730014AbgELOe5 (ORCPT + 99 others); Tue, 12 May 2020 10:34:57 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:57788 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726055AbgELOe4 (ORCPT ); Tue, 12 May 2020 10:34:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589294095; 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=Y3f4zptkSRcSxluqEOKgN4rMXqWWdxu/lC4FoXf5Ak4=; b=XvWp9hthfonOC52Ojd9QOICzebTmC0uw7hO7jeko86QoVC6JF8DYk4pOlipAyRA3xLeLPe gjkQOOKs4JO5Rhs/KnGNB1rwieY/2R3WqRTCbVLqCvEUjEcNlw0xJoE5mOm7y8kxYlPJyd Bx6bRExJpbxWHC9UTMhg84KuLV26NkM= 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-327-W5Zq4JKgNMOBzMfs_c4PSw-1; Tue, 12 May 2020 10:34:51 -0400 X-MC-Unique: W5Zq4JKgNMOBzMfs_c4PSw-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 425A81005510; Tue, 12 May 2020 14:34:50 +0000 (UTC) Received: from krava (unknown [10.40.194.31]) by smtp.corp.redhat.com (Postfix) with SMTP id E7D196C792; Tue, 12 May 2020 14:34:47 +0000 (UTC) Date: Tue, 12 May 2020 16:34:47 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Adrian Hunter , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: Re: [PATCH perf/urgent] perf tools: Fix is_bpf_image function logic Message-ID: <20200512143447.GB3158213@krava> References: <20200512122310.3154754-1-jolsa@kernel.org> <20200512133223.GI28888@kernel.org> <20200512133609.GA3158213@krava> <20200512140902.GK28888@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200512140902.GK28888@kernel.org> 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 Tue, May 12, 2020 at 11:09:02AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, May 12, 2020 at 03:36:09PM +0200, Jiri Olsa escreveu: > > On Tue, May 12, 2020 at 10:32:23AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, May 12, 2020 at 02:23:10PM +0200, Jiri Olsa escreveu: > > > > Adrian reported that is_bpf_image is not working the way it was > > > > intended - passing on trampolines and dispatcher names. Instead > > > > it returned true for all the bpf names. > > > > > > > > The reason even this logic worked properly is that all bpf objects, > > > > even trampolines and dispatcher, were assigned DSO_BINARY_TYPE__BPF_IMAGE > > > > binary_type. > > > > > > > > The later for bpf_prog objects, the binary_type was fixed in bpf load event > > > > processing, which is executed after the ksymbol code. > > > > > > > > Fixing the is_bpf_image logic, so it properly recognizes trampoline > > > > and dispatcher objects. > > > > > > This is not applying on top of torvalds/master, not tip/perf/urgent, and > > > > right.. it's on top of your's perf/core.. I can rebase on perf/urgent > > You don't need to, this hasn't hit torvalds/master, it'll be in the next > merge window, the one for 5.8. > perfect, thanks jirka