From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752212AbcBVS7h (ORCPT ); Mon, 22 Feb 2016 13:59:37 -0500 Received: from www.linutronix.de ([62.245.132.108]:35922 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243AbcBVS7f (ORCPT ); Mon, 22 Feb 2016 13:59:35 -0500 Date: Mon, 22 Feb 2016 19:58:16 +0100 (CET) From: Thomas Gleixner To: Andi Kleen cc: LKML , Peter Zijlstra , x86@kernel.org, Borislav Petkov , Stephane Eranian , Harish Chegondi , Kan Liang , Andi Kleen , Jacob Pan Subject: Re: [patch V2 22/28] x86/perf/intel/rapl: Cleanup the printk output In-Reply-To: <87lh6cpotb.fsf@tassilo.jf.intel.com> Message-ID: References: <20160222110337.198341739@linutronix.de> <20160222110442.063337470@linutronix.de> <87lh6cpotb.fsf@tassilo.jf.intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andi, On Mon, 22 Feb 2016, Andi Kleen wrote: > Thomas Gleixner writes: > > > > +static void __init rapl_advertise(void) > > +{ > > + int i; > > + > > + pr_info("API unit is 2^-32 Joules, %d fixed counters, %llu ms ovfl timer\n", > > + hweight32(rapl_cntr_mask), rapl_timer_ms); > > Does the final resulting line contain RAPL for grepping? Yes. That's what the pr_fmt prepends. [35282.080376] calling rapl_pmu_init+0x0/0xff5 [perf_event_intel_rapl] @ 10523 [35282.080679] RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 655360 ms ovfl timer [35282.088634] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules [35282.094394] RAPL PMU: hw unit of domain package 2^-14 Joules [35282.111347] RAPL PMU: hw unit of domain dram 2^-16 Joules [35282.127514] initcall rapl_pmu_init+0x0/0xff5 [perf_event_intel_rapl] returned 0 after 46023 usecs > Ideally would be similar as before in case someone has a parser for > this. It is. Thanks, tglx