All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: "Liang, Kan" <kan.liang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Stephane Eranian <eranian@google.com>,
	Andi Kleen <andi@firstfloor.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES
Date: Mon, 11 May 2015 18:27:58 -0300	[thread overview]
Message-ID: <20150511212758.GF5456@kernel.org> (raw)
In-Reply-To: <37D7C6CF3E00A74B8858931C1DB2F077018263BD@SHSMSX103.ccr.corp.intel.com>

Em Mon, May 11, 2015 at 08:40:56PM +0000, Liang, Kan escreveu:
> > Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu:
> > > $ perf record -e '{cycles:p,instructions:p}' -c 20003 --no-time
> > > ~/tchain ~/tchain [perf record: Woken up 148 times to write data]
> > > [perf record: Captured and wrote 36.922 MB perf.data (1206322
> > > samples)]

> > > $ perf report -D | tail
> > >           SAMPLE events:     120243
> > >            MMAP2 events:          5
> > >     LOST_SAMPLES events:         24
> > >   FINISHED_ROUND events:         15
> > > cycles:p stats:
> > >            TOTAL events:      59348
> > >           SAMPLE events:      59348
> > > instructions:p stats:
> > >            TOTAL events:      60895
> > >           SAMPLE events:      60895

> > The example doesn't show which of cycles:p or instructions:p got lost, isn't
> > that possible? Guess not from the patch, but should, no? I.e. what is
> > PERF_SAMPLE_ID for then?
 
> Yes, it's possible to know the lost samples number for cycles:p or
> instructions:p. But I didn't implement it in the summary of perf report -D.
> I think a total lost_samples number is enough for user. What they really
> care about should be the total samples drop rate. 
> (If they really want to know the number of which event got lost, they can
> search LOST_SAMPLES in perf report -D. sample->id is dumped with lost
> number.) 

I disagree, since the support is there, we need to have it in
hists->events_stats[PERF_RECORD_LOST_SAMPLES].

But that can be done in a follow up patch.

It just came quickly to my attention because of all the discussion about
where to store something (PERF_SAMPLE_ID via sample_type + sample_id_all)
that doesn't get used in the patch that introduces it :-)

I'll try to test this all tomorrow and will try to do the needed wiring
to hists_evsel->hists->events_stats.

All working I can push this all via my perf/core event, if PeterZ
agrees and is ok with the kernel specific bits.

- Arnaldo

  reply	other threads:[~2015-05-11 21:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-10 19:13 [PATCH V9 0/8] large PEBS interrupt threshold Kan Liang
2015-05-10 19:13 ` [PATCH V9 1/8] perf, x86: use the PEBS auto reload mechanism when possible Kan Liang
2015-05-10 19:13 ` [PATCH V9 2/8] perf, x86: introduce setup_pebs_sample_data() Kan Liang
2015-05-10 19:13 ` [PATCH V9 3/8] perf, x86: handle multiple records in PEBS buffer Kan Liang
2015-05-12 13:25   ` [RFC][PATCH] perf, pebs: Add PEBS v3 record decoding Peter Zijlstra
2015-05-12 18:08     ` Andi Kleen
2015-05-13  1:31       ` Liang, Kan
2015-05-10 19:13 ` [PATCH V9 4/8] perf, x86: large PEBS interrupt threshold Kan Liang
2015-05-10 19:13 ` [PATCH V9 5/8] perf, x86: drain PEBS buffer during context switch Kan Liang
2015-05-10 19:13 ` [PATCH V9 6/8] perf, x86: enlarge PEBS buffer Kan Liang
2015-05-10 19:13 ` [PATCH V9 7/8] perf, x86: introduce PERF_RECORD_LOST_SAMPLES Kan Liang
2015-05-11 19:06   ` Arnaldo Carvalho de Melo
2015-06-07 17:50   ` [tip:perf/core] perf/x86/intel: Introduce PERF_RECORD_LOST_SAMPLES tip-bot for Kan Liang
2015-05-10 19:13 ` [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES Kan Liang
2015-05-11 19:22   ` Arnaldo Carvalho de Melo
2015-05-11 20:40     ` Liang, Kan
2015-05-11 21:27       ` Arnaldo Carvalho de Melo [this message]
2015-05-12 12:43         ` Peter Zijlstra
2015-05-12 13:04           ` Arnaldo Carvalho de Melo
2015-06-07 17:51   ` [tip:perf/core] " tip-bot for Kan Liang
2015-05-11 16:06 ` [PATCH V9 0/8] large PEBS interrupt threshold Peter Zijlstra
2015-05-11 16:08   ` Liang, Kan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150511212758.GF5456@kernel.org \
    --to=acme@kernel.org \
    --cc=andi@firstfloor.org \
    --cc=eranian@google.com \
    --cc=kan.liang@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.