From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932125AbcEKLjN (ORCPT ); Wed, 11 May 2016 07:39:13 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:57925 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565AbcEKLjM (ORCPT ); Wed, 11 May 2016 07:39:12 -0400 Date: Wed, 11 May 2016 13:39:09 +0200 From: Peter Zijlstra To: Zhao Lei Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] cpuacct: Show all detail stats in one file Message-ID: <20160511113909.GF3190@twins.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2016 at 01:43:16AM +0800, Zhao Lei wrote: > # cat cpuacct.usage_all > [cpu] user system > [0] 3809760299 5807968992 > [1] 3250329855 454612211 > .. > > Any aspects of statistics data can be get from this file > with a simple data-processing code. Is there a precedent for using [%d] for the first column? Would it not be easier to parse without that?