Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp175247yba; Thu, 2 May 2019 22:56:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4MmoGed1XRdMJRueKfHXs+n2y4T8rHmmGK3TSuJFJzIHk79YD9hq74dXITq5prlRBhHI4 X-Received: by 2002:a17:902:108a:: with SMTP id c10mr1123022pla.48.1556863016383; Thu, 02 May 2019 22:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556863016; cv=none; d=google.com; s=arc-20160816; b=ri2BbqFtAQGWxEabycdyh5rgioZHS5/0K9WjpOI26HxjCz5rQ81t5cMZkG+uMdQT/0 kBvNyBbwh8yczKXqV4pjSTbqodzY78nBak5uPA82Cp1V+fMlZIbxd1Z8yRJgGb+QTWgU VA5zJPCCNrvRs1efG2gk2zvODufSXwdfd4/pxxA53YttkJREwHG5rX8vyhsSdAswxya+ UfAlOxzG1TEZJjn7FSpjNOUeA6FLr9VpDMJrwXlkarCFVV7isvJ5oCzUkEbturfQF2wD xTxMV14cvku/m4HzRuC/IETGnwInX0vmZMqepnjjcjgFg+wGRm4Ycg58y/0KjesX6w/W Smrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=Z018EsgS5L+Qa0YLaWNCVYQ6IYJaDKtfJSGSpJmmsFw=; b=T9gBvsZUVoWu55PVHYy1eYJFi7/A99DOo2TjGlvk2z1MgBecZWE+TUoc5j6twz24RP iYsKPVLYg5sKtnllVnrcUbJyeTjJxRxM+13bYM3RpBa5w4LRCnTDlHJZRnS69E03oWXc 2vESql+zN2JJ7Qb+AQQEipL5RP58jtrI8Ktnja5Zqbfshs2Jr9GqNY1XJ8qDY4UJ1Gzx QupbIf5eIQsXPW9iRaZB5bP1fZyC+MdQ4qTlkHwMiGqRGOhX3wMdqMcYpFVQrg3IALgQ TBFBVdSe5oukfhAzeaMIk5ldsOJKUeBZ3GttiGw69kqp0NJo13tBAjVF8Hy3v1lvSb+j AnZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019041745 header.b=SfobSS6O; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si1335796pld.438.2019.05.02.22.56.41; Thu, 02 May 2019 22:56:56 -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; dkim=pass header.i=@zytor.com header.s=2019041745 header.b=SfobSS6O; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfECFxs (ORCPT + 99 others); Fri, 3 May 2019 01:53:48 -0400 Received: from terminus.zytor.com ([198.137.202.136]:50171 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfECFxs (ORCPT ); Fri, 3 May 2019 01:53:48 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x435rbWt2618031 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 2 May 2019 22:53:37 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x435rbWt2618031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019041745; t=1556862818; bh=Z018EsgS5L+Qa0YLaWNCVYQ6IYJaDKtfJSGSpJmmsFw=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=SfobSS6OAogH1FB/KApIXJFDAn8FKAAFUoI7/hQJHJn9vXnC1Ampphl6UvIwTSdx/ o6gwJq9ykTJ8yKtODBlKK9iuwstwPvE3nYfM6I1DR9ycPhFD+PnjIzbTW45BBghXEf NpKnLQ41vB8LK5pjRPNt6/f7X/FQ6lec3imX1x93IE9QXcNlrGFW1Vh2vBWlLoUBgZ Ew4fa5uoADxCEGvzZImdXWHAfNeRPqkX/UjbQZY4jeiZJd43jUVIz7u5ZAaQlcIf3G aw81vTdre0EzYOiQbsk/fiMRyjkEoVnWSZMEzYde0Yj0hh+bbKr3oFrJnCaQ5sE7Fl /bz0tRgQSeKMw== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x435rbK62618028; Thu, 2 May 2019 22:53:37 -0700 Date: Thu, 2 May 2019 22:53:37 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thadeu Lima de Souza Cascardo Message-ID: Cc: hpa@zytor.com, mingo@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, songliubraving@fb.com, cascardo@canonical.com, tglx@linutronix.de Reply-To: tglx@linutronix.de, cascardo@canonical.com, mingo@kernel.org, songliubraving@fb.com, linux-kernel@vger.kernel.org, hpa@zytor.com, acme@redhat.com In-Reply-To: <20190403194452.10845-1-cascardo@canonical.com> References: <20190403194452.10845-1-cascardo@canonical.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf annotate: Fix build on 32 bit for BPF annotation Git-Commit-ID: 01e985e900d3e602e9b1a55372a8e5274012a417 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 01e985e900d3e602e9b1a55372a8e5274012a417 Gitweb: https://git.kernel.org/tip/01e985e900d3e602e9b1a55372a8e5274012a417 Author: Thadeu Lima de Souza Cascardo AuthorDate: Wed, 3 Apr 2019 16:44:52 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 2 May 2019 16:00:19 -0400 perf annotate: Fix build on 32 bit for BPF annotation Commit 6987561c9e86 ("perf annotate: Enable annotation of BPF programs") adds support for BPF programs annotations but the new code does not build on 32-bit. Signed-off-by: Thadeu Lima de Souza Cascardo Acked-by: Song Liu Fixes: 6987561c9e86 ("perf annotate: Enable annotation of BPF programs") Link: http://lkml.kernel.org/r/20190403194452.10845-1-cascardo@canonical.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/annotate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index c8b01176c9e1..09762985c713 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -1714,8 +1714,8 @@ static int symbol__disassemble_bpf(struct symbol *sym, if (dso->binary_type != DSO_BINARY_TYPE__BPF_PROG_INFO) return -1; - pr_debug("%s: handling sym %s addr %lx len %lx\n", __func__, - sym->name, sym->start, sym->end - sym->start); + pr_debug("%s: handling sym %s addr %" PRIx64 " len %" PRIx64 "\n", __func__, + sym->name, sym->start, sym->end - sym->start); memset(tpath, 0, sizeof(tpath)); perf_exe(tpath, sizeof(tpath)); @@ -1740,7 +1740,7 @@ static int symbol__disassemble_bpf(struct symbol *sym, info_linear = info_node->info_linear; sub_id = dso->bpf_prog.sub_id; - info.buffer = (void *)(info_linear->info.jited_prog_insns); + info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns); info.buffer_length = info_linear->info.jited_prog_len; if (info_linear->info.nr_line_info) @@ -1776,7 +1776,7 @@ static int symbol__disassemble_bpf(struct symbol *sym, const char *srcline; u64 addr; - addr = pc + ((u64 *)(info_linear->info.jited_ksyms))[sub_id]; + addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; count = disassemble(pc, &info); if (prog_linfo)