From patchwork Sat Feb 8 01:44:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 24337 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF5C02096A for ; Sat, 8 Feb 2014 01:48:01 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id j1sf6308435iga.0 for ; Fri, 07 Feb 2014 17:48:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=EuxapHvM8042xnDXAbj9c+YedUOAgroHfnKalzByTdo=; b=aM4PSc0blPF7pHCTFFiiLW2R7yHpd5WjnNu7qnKRmB+l8xyZVee4rIDOaAArs6U6hp EDXeYDpTm3XzVKfvqC3UXZmPGikyLrv+LnBOKpa62xYyF/Y6xMjBEiP2sFoYK+iwT5ZO QYYQ7wt7GInwjeTDMj7dk52zyaeQbivJ09Yzqz1MmkddUNlPNzrwootadUZe7sgD57fS 1/6O6I2SpFkg7JTyyzTc9nG2pilE2p3OqoXn1Cur9FUvgwIIfI2DQvkxvhCD4kQZltuL N0iw9zKmVHWNj1PTh/eJF9ibmbS86jZAM8GAIrK7mR4Nk9I8ZOyZT/Oz8FazHpgf2SYP zb9Q== X-Gm-Message-State: ALoCoQkvl6YK8W9PUdd9lezFzJeatubiFdsA4E9rHlfDRCP2im6vNMlXKjle6ORVi2gZe1HEtUSy X-Received: by 10.42.123.139 with SMTP id s11mr1244480icr.15.1391824080935; Fri, 07 Feb 2014 17:48:00 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.37 with SMTP id u34ls1327432qgu.37.gmail; Fri, 07 Feb 2014 17:48:00 -0800 (PST) X-Received: by 10.220.159.4 with SMTP id h4mr13064236vcx.1.1391824080829; Fri, 07 Feb 2014 17:48:00 -0800 (PST) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id a8si2006113vej.93.2014.02.07.17.48.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 17:48:00 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id m10so3221911vbh.18 for ; Fri, 07 Feb 2014 17:48:00 -0800 (PST) X-Received: by 10.58.161.227 with SMTP id xv3mr22383veb.31.1391824080749; Fri, 07 Feb 2014 17:48:00 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp5893vcz; Fri, 7 Feb 2014 17:48:00 -0800 (PST) X-Received: by 10.66.11.202 with SMTP id s10mr11638044pab.86.1391824079656; Fri, 07 Feb 2014 17:47:59 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si6969876pao.152.2014.02.07.17.47.58; Fri, 07 Feb 2014 17:47:58 -0800 (PST) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751386AbaBHBrx (ORCPT + 27 others); Fri, 7 Feb 2014 20:47:53 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:63617 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334AbaBHBrw (ORCPT ); Fri, 7 Feb 2014 20:47:52 -0500 Received: from 172.24.2.119 (EHLO szxeml210-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AKG13266; Sat, 08 Feb 2014 09:47:39 +0800 (CST) Received: from SZXEML424-HUB.china.huawei.com (10.82.67.163) by szxeml210-edg.china.huawei.com (172.24.2.183) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sat, 8 Feb 2014 09:47:35 +0800 Received: from lggeml426-hub.china.huawei.com (10.72.61.126) by szxeml424-hub.china.huawei.com (10.82.67.163) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sat, 8 Feb 2014 09:47:38 +0800 Received: from kernel-host.huawei (10.107.197.247) by lggeml426-hub.china.huawei.com (10.72.61.126) with Microsoft SMTP Server id 14.3.158.1; Sat, 8 Feb 2014 09:47:29 +0800 From: Wang Nan To: CC: Jiri Olsa , Wang Nan , "Arnaldo Carvalho de Melo" , Steven Rostedt , Namhyung Kim , Ingo Molnar , "Andrew Morton" , Geng Hui Subject: [PATCH resend 2/2] tools lib traceevent: Use realpath for srctree and objtree Date: Sat, 8 Feb 2014 09:44:56 +0800 Message-ID: <1391823896-11277-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1390730778-30366-1-git-send-email-wangnan0@huawei.com> References: <1390730778-30366-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.107.197.247] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangnan0@huawei.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , If BUILD_SRC or CURDIR contains tailing '/', the file names passed to gcc will contain '//'. It will be contained .o's in debuginfo, then confuse debugedit: https://bugzilla.redhat.com/show_bug.cgi?id=304121 This patch uses realpath command to makesure potential tailing '/'s are removed. Signed-off-by: Wang Nan Acked-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Namhyung Kim Cc: Ingo Molnar Cc: Andrew Morton Cc: Geng Hui --- tools/lib/traceevent/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 005c9cc..5bb281c 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -107,8 +107,8 @@ endif # BUILD_SRC # We process the rest of the Makefile if this is the final invocation of make ifeq ($(skip-makefile),) -srctree := $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR)) -objtree := $(CURDIR) +srctree := $(realpath $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR))) +objtree := $(realpath $(CURDIR)) src := $(srctree) obj := $(objtree)