From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87A38C10F13 for ; Tue, 16 Apr 2019 19:31:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 595A3206BA for ; Tue, 16 Apr 2019 19:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729571AbfDPTbP (ORCPT ); Tue, 16 Apr 2019 15:31:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56490 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727136AbfDPTbO (ORCPT ); Tue, 16 Apr 2019 15:31:14 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F08881F13; Tue, 16 Apr 2019 19:31:14 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-14.phx2.redhat.com [10.3.112.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9563960C5F; Tue, 16 Apr 2019 19:31:13 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 78CD15B81; Tue, 16 Apr 2019 16:31:09 -0300 (BRT) Date: Tue, 16 Apr 2019 16:31:09 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Adrian Hunter , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Martin KaFai Lau , Namhyung Kim , Peter Zijlstra , Song Liu , Yonghong Song , lkml , Ingo Molnar , Alexander Shishkin , Peter Zijlstra , Andi Kleen Subject: Re: [PATCH 07/12] perf tools: Check maps for bpf programs Message-ID: <20190416193109.GA7976@redhat.com> References: <20190416160127.30203-1-jolsa@kernel.org> <20190416160127.30203-8-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416160127.30203-8-jolsa@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 16 Apr 2019 19:31:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Apr 16, 2019 at 06:01:22PM +0200, Jiri Olsa escreveu: > From: Song Liu > > As reported by Jiri Olsa in: > > "[BUG] perf: intel_pt won't display kernel function" > https://lore.kernel.org/lkml/20190403143738.GB32001@krava > > Recent changes to support PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT > broke --kallsyms option. This is because it broke test __map__is_kmodule. > > This patch fixes this by adding check for bpf program, so that these maps > are not mistaken as kernel modules. Thanks, applied to perf/urgent. - Arnaldo