From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbbFZPGz (ORCPT ); Fri, 26 Jun 2015 11:06:55 -0400 Received: from mail.kernel.org ([198.145.29.136]:45592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231AbbFZPGs (ORCPT ); Fri, 26 Jun 2015 11:06:48 -0400 Date: Fri, 26 Jun 2015 12:06:44 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Adrian Hunter , Andi Kleen , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Stephane Eranian Subject: Re: [PATCHv5 00/22] perf stat: Introduce --per-thread option Message-ID: <20150626150644.GC3265@kernel.org> References: <1435310967-14570-1-git-send-email-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435310967-14570-1-git-send-email-jolsa@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jun 26, 2015 at 11:29:05AM +0200, Jiri Olsa escreveu: > hi, > adding the possibility to display stat data per thread. > > Allowing following commands and output: > > $ perf stat -e cycles,instructions --per-thread -p 30190,30242 > ^C > Performance counter stats for process id '30190,30242': > > cat-30190 0 cycles > yes-30242 3,842,525,421 cycles > cat-30190 0 instructions > yes-30242 10,370,817,010 instructions > > 1.143155657 seconds time elapsed > > > Also works under interval mode: > > $ perf stat -e cycles,instructions --per-thread -p 30190,30242 -I 1000 > # time comm-pid counts unit events Thanks, applied, tested, - Arnaldo