Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1312217ybn; Wed, 25 Sep 2019 16:09:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyia+PTDtON6zfOyLtTv2GoXE6l7vUfv4GHs28vOgVD9jfWRTAq6QIIS+Bd8hTSB9HR4mR+ X-Received: by 2002:a17:906:c47:: with SMTP id t7mr544376ejf.133.1569452963311; Wed, 25 Sep 2019 16:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569452963; cv=none; d=google.com; s=arc-20160816; b=p1oetVJIiEgT/GgINf+Axkp0/bVWc6vqw3srUeWPwovYUY5opb7xzPKsLZLfCzHKsi SIaCTiyIKq1XVfL1piAkjUNpIeaVnIAj2X9JAlgs4wgD0UH819xgZGODhRONulk6tdIY SSaD9S0Ay30PeDa1DNkCC1rnTP7Uq3DUK0d1LHrfCjVx8HGNZ1cSi/GBjU4puGVh6Occ +bzcgCAx+Sk58mvuKfWNmddWUPBmc1oOj8Cf5G5aFayc1BlIBooE1B0v4iteAHCdHBcw ZmAnO0M1nQlg19XE7zC2yraJTOQ8VGJVMhCTerxaDbh9cREC6KqwNXXIgQ2Lywynjclj PE5g== 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=85I7PuBx9TrzcmH2BeAAEmS4IvsKcg96GeAc5b1AUEg=; b=g09CDhfTWqhWouizIYEOcMfxSEakpkeeUuiI+qX9oHTLYmEwB+rkageWDOyk+oMQ92 FBTKnDtcK5wnB0ON+v/BMyBAHXgwiZoe7izzB6T8LOn7b+ALSnI6pAhOTc9ktRJUZz00 eozjKVR2gPIekeO9wkVSDBUMWY+ZNLoNzhA2ze7pIhq+FLKRy+flFsgPK9wrU5wdzKAQ IYIv06TTph3fHZaHeEIfaSiSmD5JwW3XJ0ujxcNM2/79cEdv1qKXFjhW61ngSR7Cjf8i IL5gofOdHVZZqShN/Jtv/CPwb+wLtTt2woNSL3piRLbMx+hNt1WvZDHXutKm3+gNmF3F u74A== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f33si271829edb.281.2019.09.25.16.08.59; Wed, 25 Sep 2019 16:09:23 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733295AbfIWTRs (ORCPT + 99 others); Mon, 23 Sep 2019 15:17:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37930 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727327AbfIWTRr (ORCPT ); Mon, 23 Sep 2019 15:17:47 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5F758535C; Mon, 23 Sep 2019 19:17:47 +0000 (UTC) Received: from krava (ovpn-204-49.brq.redhat.com [10.40.204.49]) by smtp.corp.redhat.com (Postfix) with SMTP id AB6E260852; Mon, 23 Sep 2019 19:17:45 +0000 (UTC) Date: Mon, 23 Sep 2019 21:17:44 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: Re: [PATCH 32/73] libperf: Move page_size into libperf Message-ID: <20190923191744.GA12521@krava> References: <20190913132355.21634-1-jolsa@kernel.org> <20190913132355.21634-33-jolsa@kernel.org> <20190923191036.GB13508@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190923191036.GB13508@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 23 Sep 2019 19:17:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 23, 2019 at 04:10:36PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 13, 2019 at 03:23:14PM +0200, Jiri Olsa escreveu: > > We need page_size in libperf, so moving it in there. > > Adding libperf_init as a global libperf init functon. > > > > Link: http://lkml.kernel.org/n/tip-g6auuaej31nsusuevuhcgxli@git.kernel.org > > Signed-off-by: Jiri Olsa > > --- > > tools/perf/lib/core.c | 7 +++++++ > > tools/perf/lib/include/internal/lib.h | 2 ++ > > tools/perf/lib/include/perf/core.h | 1 + > > tools/perf/lib/lib.c | 2 ++ > > tools/perf/lib/libperf.map | 1 + > > tools/perf/perf.c | 4 ++-- > > tools/perf/util/util.h | 2 -- > > you forgot to remove it from tools/perf/util/util.c, I did it, and also > added internal/lib.h to the places that use page_size, after this I'll > remove that include from util/util.h, that header has to die :-) ah right.. linker wouldn't fail because it's variable, so there's no conflict.. thanks, jirka