Received: by 10.213.65.68 with SMTP id h4csp311186imn; Fri, 23 Mar 2018 05:18:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELuSp57vNoVqgTU8wEe+xK6r5z2cC+b79RariBWzEEQoz77hCl4UC6thDDJ4cULGSQ8w0/57 X-Received: by 2002:a17:902:51ad:: with SMTP id y42-v6mr26203070plh.314.1521807488545; Fri, 23 Mar 2018 05:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521807488; cv=none; d=google.com; s=arc-20160816; b=lDRUQgJrUS78ihsrfehBAV8wf0o9Sf0sDX+k9fvAoAd188lucjdQzpTXNuXIWEB2VL JhKDOj2shnERXVGKMKyLvifGKQbGM2CiPFhJkwYOPmLLYdeFAl474E3HYUDrQG+auSkr X24Rx675rB9E49wMoc+bmEm+HAog46wUlpKflAW2Hy7PymHohPgMIdCwp64Jwq/2kQq7 ecugrOc6LGlaM0ClsQuIRcKuG05kFimMYUDGdXuarH6LS0eOyEUjJgg62ZS49kvfrUSN qOMSu0YRNn8iz5C3POxMeoqsCq3nCGv6SJ2STYITab8i4Kll5shUolw7NdmCVVwaSX3c 8KNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=wpbYHcGtgBUQb1vUmPAgWxhn4DSGaTTDEFPEVRe4cU4=; b=a1V/09RpIM+v/BrtPA++y+Cru4+7k5b/4VadhyEvibH1caC5nMhOEVy72M2IYPv1oH /fnGB5ZKz0Zt/EUcSycLaCMk0ZVEB+L+BN7bTLESf0vdMo8siJXk1KDtM3LyBXu+SXk8 0CSKOZkaulop6znJBIG2y3Ass0r+nHdf4LCLSDyfTjA79AZ6efdE6mE0DcuFw01g/EnD mISjNds7quvrtvMXD83RVZbdHzpLa+C1bQOT2dBY/S+a+2O3LFUSWeD/12XUYUA0mGBC kNEZjr86mkzjGEqyX575WyszbiD3rotoimYP54WRXJWB98E4USLtuogj+oULcIqPw2We yrKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mx.aim.com header.s=20150623 header.b=mmMADNIt; 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=REJECT sp=REJECT dis=NONE) header.from=aim.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si5955940pgf.172.2018.03.23.05.17.54; Fri, 23 Mar 2018 05:18:08 -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=@mx.aim.com header.s=20150623 header.b=mmMADNIt; 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=REJECT sp=REJECT dis=NONE) header.from=aim.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752738AbeCWMRC (ORCPT + 99 others); Fri, 23 Mar 2018 08:17:02 -0400 Received: from omr-a003e.mx.aol.com ([204.29.186.57]:63019 "EHLO omr-a003e.mx.aol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752706AbeCWMRA (ORCPT ); Fri, 23 Mar 2018 08:17:00 -0400 Received: from mtaout-mba01.mx.aol.com (mtaout-mba01.mx.aol.com [172.26.133.109]) by omr-a003e.mx.aol.com (Outbound Mail Relay) with ESMTP id 6716738000A1; Fri, 23 Mar 2018 08:16:59 -0400 (EDT) Received: from [10.11.12.90] (0x5b31302e31312e31322e39305d [99.246.128.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mba01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 841563800008C; Fri, 23 Mar 2018 08:16:58 -0400 (EDT) Subject: Re: [PATCH RESEND] perf annotate: Don't prepend symfs path to build_id_filename To: Arnaldo Carvalho de Melo Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180313135618.2900-1-jpmv27@aim.com> From: Martin Vuille Message-ID: <3f18ff8d-ef93-a48c-2f27-c8780edc1bf7@aim.com> Date: Fri, 23 Mar 2018 08:16:57 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180313135618.2900-1-jpmv27@aim.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aim.com; s=20150623; t=1521807419; bh=wpbYHcGtgBUQb1vUmPAgWxhn4DSGaTTDEFPEVRe4cU4=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=mmMADNItGCrMgN1Q9C3N/N8dr6oj6ovh4UUgAug1dA8accm3cq6YnndgSqkEiaHRT HC5elYZngqXmCRGI51GsTiaGKQqSaF+rIMZpck5GgvRiggJWMCT4RPOJnoWkSahCQU 1kV1FIevanlt6S3f7NMBr19g4SDYOdISy04XTe5o= x-aol-sid: 3039ac1a856d5ab4f03a4576 X-AOL-IP: 99.246.128.134 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping? On 03/13/18 09:56, Martin Vuille wrote: > build_id_filename already contains symfs path if applicable, so > don't prepend it a second time. > > - dso__build_id_filename calls build_id_cache__linkname > - build_id_cache__linkname uses buildid_dir > - when symfs option is specified, symbol__config_symfs sets > buildid_dir to include the symfs directory > > Signed-off-by: Martin Vuille > --- > tools/perf/util/annotate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index 007170efa014..0b78cc4fb155 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -1381,7 +1381,7 @@ static int dso__disassemble_filename(struct dso *dso, char *filename, size_t fil > > build_id_filename = dso__build_id_filename(dso, NULL, 0, false); > if (build_id_filename) { > - __symbol__join_symfs(filename, filename_size, build_id_filename); > + scnprintf(filename, filename_size, "%s", build_id_filename); > free(build_id_filename); > } else { > if (dso->has_build_id)