Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2230215ybg; Sat, 19 Oct 2019 10:47:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu2r9sJb0R+aZYLo0RfOZ1raH5Y9vomA2Mc5Bsm+xlOtXaUHRVdMph032ysDDrJRJA4+vZ X-Received: by 2002:a17:906:3949:: with SMTP id g9mr12132760eje.171.1571507233407; Sat, 19 Oct 2019 10:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571507233; cv=none; d=google.com; s=arc-20160816; b=UabPP9SrwkqMqIB+AJzJvrIBojAcjFHHES9fcHokl+x66frjDIwdPpwOr3acgjCS1e +59WsP2y3/5ACmKfVFLUDXS0hs3mhdh5bXACzXudHa5xiMWTq0ruxsbR1aI1k2KtXblK WtOoZAX1ptru2GAlk0uF7wEdNhjtwz/g17e4ctf1heeTLnLlEHu9e5PLRsk3xmw2CpRI U3/CjecBjn/GJxWqUMRG5GscQzJedLeqZB51PEjL+unp92SQS8Ikt3uPTU1p9uKf7GCF ksLPbbpR8ZbTNmEn/notl61NR8f9TGBBwyQDr4IJLkGO5BqmojHmifB5oH0LghPH2ts1 lcxA== 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=PUAbi9gtDB4keSixIsPuiPWGKniK/ln01xBgx44eiIk=; b=nkXLwWx3em3IljsZ2LVZImY4QV7Ml8ov3kR3q3W8jlWLAAtG9pb7YkU9aj01hZrK+i rX5G8NA6VkTheE8zc6z8SSjDpFAUFDwl+cznRdNZercvWXOmVXOZc3zZ3ZYNVoBtZGzi GV1OYa45rA9pgwVqRQriFgtLvPDbDsLvchcu11GxnVAx1phI7oLCZExZP+YEmuTIiB2P R2kPNUWmkEMF3jI/quDwnobsbuFMgAayc8hW5PqlmopjUPygo8e5YzSRKkW2PSuJNS3j LWtOFObHXfk1mo8u6HsKsUVsEX2lrQjin9c+mSPw/LndNARoCEMRR1L8oNZv3d709kwi 2EMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ea4Qn9qq; 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 ym1si5517403ejb.263.2019.10.19.10.46.48; Sat, 19 Oct 2019 10:47:13 -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=ea4Qn9qq; 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 S1726092AbfJSRmw (ORCPT + 99 others); Sat, 19 Oct 2019 13:42:52 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:42881 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726049AbfJSRmw (ORCPT ); Sat, 19 Oct 2019 13:42:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571506970; 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=PUAbi9gtDB4keSixIsPuiPWGKniK/ln01xBgx44eiIk=; b=ea4Qn9qqhg/9wQ3f1gG2qPzikGKpc/tX1bifHzSTHY5APK2DJov+X/Q8/CxEiAdRSMAAw+ Z7t4vsJvtLlwtRnFocU0xFXvrSMqpIXMYEM+M4NLTdkkgN02n+NPMJtaJVbNkkkf1HWrjW 6wJXbsgTOI1sq4BcZ3ZG6/hTuh4QDZI= 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-222-qtmdEK9XN_KGZg_BcM5sJw-1; Sat, 19 Oct 2019 13:42:46 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3390D1800DC7; Sat, 19 Oct 2019 17:42:45 +0000 (UTC) Received: from krava (ovpn-204-36.brq.redhat.com [10.40.204.36]) by smtp.corp.redhat.com (Postfix) with SMTP id 322EA100194E; Sat, 19 Oct 2019 17:42:41 +0000 (UTC) Date: Sat, 19 Oct 2019 19:42:41 +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 07/10] libperf: Add tests_mmap_cpus test Message-ID: <20191019174241.GB12782@krava> References: <20191017105918.20873-1-jolsa@kernel.org> <20191017105918.20873-8-jolsa@kernel.org> <20191018181429.GE1797@kernel.org> <20191018181631.GF1797@kernel.org> MIME-Version: 1.0 In-Reply-To: <20191018181631.GF1797@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: qtmdEK9XN_KGZg_BcM5sJw-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:16:31PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Oct 18, 2019 at 03:14:29PM -0300, Arnaldo Carvalho de Melo escrev= eu: > > Em Thu, Oct 17, 2019 at 12:59:15PM +0200, Jiri Olsa escreveu: > > > Adding mmaping tests that generates prctl call on > > > every cpu validates it gets all the related events > > > in ring buffer. > >=20 > > So _here_ we need _GNU_SOURCE, for this specific test: >=20 > Added, to this test: >=20 > [acme@quaco perf]$ git diff > diff --git a/tools/perf/lib/tests/test-evlist.c b/tools/perf/lib/tests/te= st-evlist.c > index d8c52ebfa53a..741bc1bb4524 100644 > --- a/tools/perf/lib/tests/test-evlist.c > +++ b/tools/perf/lib/tests/test-evlist.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0 > -#include > +#define _GNU_SOURCE // needed for sched.h to get sched_[gs]etaffinity an= d CPU_(ZERO,SET) > #include > +#include > #include > #include > #include > [acme@quaco perf]$ >=20 > We can go the big hammer way if this is more generally needed, but first > lets try to use it only when needed, ok? ok, thanks FYI so it's quite easy now to separate the lib and move it under tools/lib/perf.. I'll post it together with docs/tutorial update jirka