Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3495451yba; Tue, 16 Apr 2019 12:33:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvtmQ0mLm0XuYOleIQhha6GdMWJ0T6pcVFkm+QK+qKe9+3uf2nAxdlndDo6Zuv10oSdeY3 X-Received: by 2002:aa7:91c8:: with SMTP id z8mr84917667pfa.110.1555443200259; Tue, 16 Apr 2019 12:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555443200; cv=none; d=google.com; s=arc-20160816; b=QzJvuxDHB1o2beMtdf81wXwFS/Vu+/b61wUoHYpTQnI0CijZlC+jhmIcYruAFalHKs WCiYUKEPTVMhq/ORV6mRpr/z9DGLxuoJsmaF2DWVNfBrix8it9ZpLTbKMDXLoxlAjOLJ mnpcqkkpI9CQWvjxiIM15ktm2ZRxmiULTPkL4L1KIzLw4H8XaQW+Y3mkk+3P01oUGikQ /PS26V5e7PAJRJd97D8cumorEgdlSip2e6BEqtefdWoHgK/S8qo9iNTg789DKfafSqoC jnFjvA/JQ/sKz82d9ZGeHkeshYTjYsd3BugFqIDB0LGAcxGx8s1fyJuRXEcELGbFLIlx dLQg== 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=ZICeZMK4SnJRk0AqaqzqgoNGjQJDhE9ogoAbHm51tY0=; b=u5MlJt5ARdsmDBIhjl/2bunFzRpF+xWzTgD9uRbzcnbhAvD0s20e6if7LUsm0U9qW6 +Zm5jBexL8arkDWyOSGdxU5/E9I52ze8L5lzGw7n9xhA1xEONRLb8aXMn0Cq2Q2oc89e 9u/exkzz8zz7k6TZRoFTRZVtfFu5BPN+LV3ffYcqp10WuIhMIm3Q77hNdeLhi9J6Fyf/ NYxp2F+YE6W2Jr0EcuejuG4BF1l2cjtg343Q3BQe3nYRdeTC8+fyXv2Zhm6tmiV+3qYf ZQPErLXp2ptXy+LtcofCRAGTrjqfBQomhzAk98Gt2m9FjzpybgYc634n90dn15xjK/0S 2FAA== 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 b67si28306656plb.20.2019.04.16.12.33.03; Tue, 16 Apr 2019 12:33:20 -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 S1729328AbfDPTbP (ORCPT + 99 others); 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