Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3687414yba; Tue, 23 Apr 2019 08:01:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2mcA62tl/ImIaJrz6ip/R/0tBGb9xIJHn2MksWQ4AouhRK4B2ITrzFYQjA1Z7DdrbR9Cj X-Received: by 2002:a62:ac02:: with SMTP id v2mr8834774pfe.163.1556031687300; Tue, 23 Apr 2019 08:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556031687; cv=none; d=google.com; s=arc-20160816; b=bJqO2UnlL6bl3wgBQS24MlK9zpDji5+cOa1BEuMtT1XVDjBriB4npZxB/FoW+tr+q5 Bzh6RR4N/4KJj2nzEHfhLxD+VhEuvFU8aQJeypWYfBcLErXeri1CBGrNPCvCCgXwepD9 ats4pinQyhvvkBWdzzMjOwMXtHZX88zeVBXPlrWUmjVM1sHgfOB7OuRZ0PRnRy1UAtWs tfUI6w+U1px9gFnW0InNAhNA8F7e+EfO2HAto+b3KDV0xpnflYS9WhrfYXET9jBtpvG5 9SMP2EXXhqCusXHy13N6qxht9zlflMqhS9YXGa17QAVkLME81DUR3NKwXoFzzffCEtGO KTlA== 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=45YFwSNU6NWoTFr+vY5INLVf/3+f9jjlK5JwAyy6g04=; b=aOHFxScpCBln/BmF9yoINp+YHHKTeDhYRr/BKMmtFuSwZQHYu3a3EFvbA0LghcNCsL hbPElQdwW/a470IMj4pV6Vu2E20iV/LbK8jIiU4x+lQ6OY4veCNZs8eXGyYpKVvSwe4+ 9pgQBTIOVje2QJFukLsobG5nbGqaLmQlzwMRKw7DP5Gq2t0Al/ij573poD7gEacKiwCP dmgwsAu4jKiPSnyU5pBisuxL3wSjxJXvwlY4mcUJJi7NH+I59g7z0Dp44iJcTzVj9129 HNHOo24JcqtZRURextV7JFEFLHF/KQy1tdoW5DysMyugETUS2rs0cLb+wUXW5d+hG0w6 B33g== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si16642522pfe.240.2019.04.23.08.01.10; Tue, 23 Apr 2019 08:01:27 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728291AbfDWO64 (ORCPT + 99 others); Tue, 23 Apr 2019 10:58:56 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:40421 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727839AbfDWO6z (ORCPT ); Tue, 23 Apr 2019 10:58:55 -0400 Received: from [177.198.83.244] (helo=calabresa) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hIwsn-0007ep-5j; Tue, 23 Apr 2019 14:58:53 +0000 Date: Tue, 23 Apr 2019 11:58:48 -0300 From: Thadeu Lima de Souza Cascardo To: Song Liu Cc: "linux-kernel@vger.kernel.org" , "acme@kernel.org" , acme@redhat.com, tglx@linutronix.de Subject: PING: Re: [PATCH] perf annotate: Fix build on 32 bit for BPF annotation Message-ID: <20190423145847.GC5376@calabresa> References: <20190403194452.10845-1-cascardo@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 03, 2019 at 09:34:02PM +0000, Song Liu wrote: > > > > On Apr 3, 2019, at 12:44 PM, Thadeu Lima de Souza Cascardo wrote: > > > > 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. > > > > Fixes: 6987561c9e86 ("perf annotate: Enable annotation of BPF programs") > > Signed-off-by: Thadeu Lima de Souza Cascardo > > Acked-by: Song Liu > > Thanks for the fix! > Song > Thanks for the ack. Pinging for getting this applied, as this is a build failure on i386. Thanks. Cascardo. > > --- > > 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) > > -- > > 2.20.1 > > >