From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: sampling and reading Date: Tue, 04 Nov 2014 13:08:04 -0800 Message-ID: <87ioiuk72j.fsf@tassilo.jf.intel.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mga01.intel.com ([192.55.52.88]:52161 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbaKDVIG (ORCPT ); Tue, 4 Nov 2014 16:08:06 -0500 In-Reply-To: (Arnav's message of "Tue, 4 Nov 2014 20:27:08 +0000 (UTC)") Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Arnav Cc: linux-perf-users@vger.kernel.org Arnav writes: > i am working on a project where i need to find program counters for every 100M > instructions. > > i have used the following command to record the event > > perf record -e instructions -c 100000000 ./filename > > now, since counters are counted every 100M instructions, i read file using > 'perf report'. But i get results in some percentage form and not in numerical > numbers format. > > i wish to read the file and gather the perforamance counter statistics. > Plz suggest how to get the desired results. Use perf script instead of perf report. -Andi -- ak@linux.intel.com -- Speaking for myself only