Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4429778imc; Mon, 25 Feb 2019 04:57:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYmuohkG8sCv9Uh4M8tNX6OC4gmDq3QVnM1T65p4mB9VaK1vi4sug0T4kdufRiUz88wC+i1 X-Received: by 2002:a62:a504:: with SMTP id v4mr20664808pfm.22.1551099422102; Mon, 25 Feb 2019 04:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551099422; cv=none; d=google.com; s=arc-20160816; b=AEd7piyl62KVEMqiPTpeg1JwmWNDnrQU1BE5nZpgWEAjomjb3+08eca8bluJw3Zuud TUiVikIw6jA3Q2nuTRSvJhovGRkkFP+FnfsKehVAe58j9ucLP1Da5G4kNDMUms+604ie XQRy3AWRAlveWJ/kREjHmqu/Rql42RaAXKS59LWYEKhZENqB6QIGisuk7qNXxiKWTC60 9FwVgTOS6zv5bRGieZdg7AFCc6tc4T7UF/BflH6lrgekl1oabeTsd0G3p6TC1U8vC9hR 1ilmqHPqVLOo7QSMSDlUahVOOo+rd00ye7y/ZUdPjwVCypgMRfkqiiBXjfEblBTaPTbX Pd9A== 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=v/K5oLj6zwjPVyvKMgV3DNPioEkCpUzDZT0OwLkaMOQ=; b=piwMJzeFy6GUArWBs8jaD89cst0QaoG1qN5MTWFOGod5ZzNREygZBz16jSfapxylnJ VPkgVs1V+zFCOy2Zj/EQthuOB/IgE7s1aSRK949BxvxWsRjJqp7SsSGwRDAJNtVHcbfS HuEcrN5v7yLglCp3EELiOX5/s4mmsHz2tqKnzUX9lSBJO9fXjgRE+nLfc8DPN9BepCh8 Oq0zs/npko5L8KxL9JbE0LlZdY+Kzt346LM8PH6A7279L607gZ+MZos2K2JOID2Lar1x KgP1aoklxW2zWOFogMq8z41N9ZFnZAjHkJrEWT1LjM6nTacZY2c93PJ9unpHw9V5zjwq 3yhg== 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 d10si10202097pfh.133.2019.02.25.04.56.46; Mon, 25 Feb 2019 04:57:02 -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; 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 S1727073AbfBYMzs (ORCPT + 99 others); Mon, 25 Feb 2019 07:55:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55670 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726921AbfBYMzs (ORCPT ); Mon, 25 Feb 2019 07:55:48 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E45123003AFB; Mon, 25 Feb 2019 12:55:47 +0000 (UTC) Received: from krava (unknown [10.43.17.18]) by smtp.corp.redhat.com (Postfix) with SMTP id 3B84A19C7B; Mon, 25 Feb 2019 12:55:46 +0000 (UTC) Date: Mon, 25 Feb 2019 13:55:44 +0100 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, namhyung@kernel.org, eranian@google.com, Andi Kleen Subject: Re: [PATCH 04/11] perf tools report: Parse time quantum Message-ID: <20190225125544.GE19795@krava> References: <20190224153722.27020-1-andi@firstfloor.org> <20190224153722.27020-5-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190224153722.27020-5-andi@firstfloor.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Mon, 25 Feb 2019 12:55:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 24, 2019 at 07:37:15AM -0800, Andi Kleen wrote: SNIP > diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c > index 669f961316f0..d25ca5bb91e6 100644 > --- a/tools/perf/util/hist.c > +++ b/tools/perf/util/hist.c > @@ -20,6 +20,8 @@ > #include > #include > > +unsigned long time_quantum = 100000000; could you please put this into symbol_conf? it's not ideal, but at least we have all the global configs in one place thanks, jirka > + > static bool hists__filter_entry_by_dso(struct hists *hists, > struct hist_entry *he); > static bool hists__filter_entry_by_thread(struct hists *hists, > diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h > index 4af27fbab24f..8e602b486c5c 100644 > --- a/tools/perf/util/hist.h > +++ b/tools/perf/util/hist.h > @@ -531,4 +531,6 @@ static inline int hists__scnprintf_title(struct hists *hists, char *bf, size_t s > return __hists__scnprintf_title(hists, bf, size, true); > } > > +extern unsigned long time_quantum; > + > #endif /* __PERF_HIST_H */ > -- > 2.17.2 >