Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2224705ybg; Sat, 19 Oct 2019 10:39:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFNnmekf80V7al5BtmXtOCP/kzPDafQbHOe5uid8svBuiXqFaP/kpar1ESqabeJ2GHQa3o X-Received: by 2002:a17:906:48c6:: with SMTP id d6mr14303938ejt.291.1571506770303; Sat, 19 Oct 2019 10:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571506770; cv=none; d=google.com; s=arc-20160816; b=N7zfcMoJUkxbDmhVUXia8RqwphLfa1ftjR4N3WNFdI0H0tYOEd1FSSkypkJEpFoMnd z1iE8H6Z4myy4XmKTrPx4vcZXjzMBxCygx0ueV+DNS+2l7v5cVwIlF/AzCqlxHWv34jO D1dD+ikxWnBji9tmhh1aEDT3z5H3xeUkcEQfSc64TH7VO8qzajvlNuj+e8WFoZdZP1Wo 4oVAgvFs2bqiei3bNd9zi6w9GXZkGHbnhhXzzKLMRKz1sMVwEKbn97eRKEY4yOO0r7tx QDHvV/Hb6hBvoACw5jzWXAKSj6dnrrxL0rHaDKg+C3i+T7t5oKdLg6EYe6taJDvtfRGF 0snA== 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:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S75KVaigEsZGCuPhN7Kb1Ly3J9PYVWcRgyzkShz1eL0=; b=CbFQSQKHidkOrty5dK9rnXx3r2stp+XVmAu/7+WmErUye8voLdOaAGhk2pgwox998s bLYd7dQEDw11rh56hlMDXAbojlQIKFYIHs4VwEnAOsNYSIz08iX3UrRn85emODR45Fh1 WtNIIatQdyYj74T+RxhK2RvfHlOQzagZ4rbRnYemtM+88QILvCf5d+uhubZ2MNiXOq82 tjwnScNu6IGBZGgAJ9YM4hxYMK1O/sand+++EalPm2uaqI/aOad5R+EXT2WIoIAZAox0 aMcPoHEOViUz28JqE8QKUrzvhIvhT0QHJQccBNZWxQZ9kLfYtkP+BRFIVWla5Rht6FnO YvQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hYvrYOeo; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si1500206ejv.339.2019.10.19.10.39.06; Sat, 19 Oct 2019 10:39:30 -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=@redhat.com header.s=mimecast20190719 header.b=hYvrYOeo; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726133AbfJSRhn (ORCPT + 99 others); Sat, 19 Oct 2019 13:37:43 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:52229 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfJSRhm (ORCPT ); Sat, 19 Oct 2019 13:37:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571506661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S75KVaigEsZGCuPhN7Kb1Ly3J9PYVWcRgyzkShz1eL0=; b=hYvrYOeoCDrerTHUhnHZkg1NnfvelsCDXlCtGdDTkUPE2SJ64xLgQ2x493VhzhW4W00tS3 XxMObFVtOS8Q++6V2TaXTHJRff7kd1DrXDI1TG20lP+/ZDtnUZz7Rp1Ta7N16k3CW2ZuqT VglQ6f4CAw2KXpvuke1+ewpWOwkvGY4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-10-dFlC1cbBPziNCJflHEh2lA-1; Sat, 19 Oct 2019 13:37:37 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7D5A80183D; Sat, 19 Oct 2019 17:37:35 +0000 (UTC) Received: from krava (ovpn-204-36.brq.redhat.com [10.40.204.36]) by smtp.corp.redhat.com (Postfix) with SMTP id C6EE5600C6; Sat, 19 Oct 2019 17:37:32 +0000 (UTC) Date: Sat, 19 Oct 2019 19:37:31 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Andi Kleen , Stephane Eranian , Jin Yao , Alexey Budankov Subject: Re: [PATCH 05/10] libperf: Add _GNU_SOURCE define to compilation Message-ID: <20191019173731.GA12782@krava> References: <20191017105918.20873-1-jolsa@kernel.org> <20191017105918.20873-6-jolsa@kernel.org> <20191018180738.GD1797@kernel.org> MIME-Version: 1.0 In-Reply-To: <20191018180738.GD1797@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: dFlC1cbBPziNCJflHEh2lA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 03:07:38PM -0300, Arnaldo Carvalho de Melo wrote: >=20 > Why? it's passed when the library is compiled with perf, but not when you compile it standalone.. and 2 '-D_GNU_SOURCE' on command line are ok jirka >=20 >=20 > Em Thu, Oct 17, 2019 at 12:59:13PM +0200, Jiri Olsa escreveu: > > Link: http://lkml.kernel.org/n/tip-m7t1e9kgea4jc3piyvjju7ps@git.kernel.= org > > Signed-off-by: Jiri Olsa > > --- > > tools/perf/lib/Makefile | 1 + > > tools/perf/lib/tests/Makefile | 2 ++ > > 2 files changed, 3 insertions(+) > >=20 > > diff --git a/tools/perf/lib/Makefile b/tools/perf/lib/Makefile > > index 0f233638ef1f..20396f68fcad 100644 > > --- a/tools/perf/lib/Makefile > > +++ b/tools/perf/lib/Makefile > > @@ -73,6 +73,7 @@ override CFLAGS +=3D -Werror -Wall > > override CFLAGS +=3D -fPIC > > override CFLAGS +=3D $(INCLUDES) > > override CFLAGS +=3D -fvisibility=3Dhidden > > +override CFLAGS +=3D -D_GNU_SOURCE > > =20 > > all: > > =20 > > diff --git a/tools/perf/lib/tests/Makefile b/tools/perf/lib/tests/Makef= ile > > index a43cd08c5c03..78c3d8c83c53 100644 > > --- a/tools/perf/lib/tests/Makefile > > +++ b/tools/perf/lib/tests/Makefile > > @@ -12,6 +12,8 @@ else > > CFLAGS :=3D -g -Wall > > endif > > =20 > > +CFLAGS +=3D -D_GNU_SOURCE > > + > > all: > > =20 > > include $(srctree)/tools/scripts/Makefile.include > > --=20 > > 2.21.0 >=20 > --=20 >=20 > - Arnaldo