Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1252242

Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on Skylake

From Andi Kleen <andi@firstfloor.org>
Newsgroups linux.kernel
Subject Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on Skylake
Date 2015-10-21 00:30 +0200
Message-ID <qlNzS-pi-61@gated-at.bofh.it> (permalink)
References <qlrzj-1Mv-1@gated-at.bofh.it> <qlDqN-2rI-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> Typically on workstations you do not, because there's only a single
> user, but on servers it might be more common.  The thing I expect to be
> most common is having both a CPU wide and a per task cycle counter
> enabled.

With multiple users they would sample only their own processes.
That works fine. The only thing that needs multiplexing is overlapping
sampling.

perf top also works fine because it doesn't use PEBS by default.

> And you having killed the flag bits for PEBS events precludes people
> from using this manually, right?  I think we want to exempt .inv=1
> .cmask=16 from that general rule on general utility value.

I don't want to do this for every event. It has caused problems
in the past. There's also no reason to use the other events.

> We could maybe abuse .precise_ip = 3 for this?

I implemented this now, even though it's ugly.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on Skylake Andi Kleen <andi@firstfloor.org> - 2015-10-20 01:00 +0200
  Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Peter Zijlstra <peterz@infradead.org> - 2015-10-20 13:40 +0200
    Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Andi Kleen <andi@firstfloor.org> - 2015-10-21 00:30 +0200
      Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Peter Zijlstra <peterz@infradead.org> - 2015-10-21 10:10 +0200
        Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Andi Kleen <ak@linux.intel.com> - 2015-10-21 17:30 +0200
          Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Peter Zijlstra <peterz@infradead.org> - 2015-10-21 19:00 +0200
            Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Andi Kleen <andi@firstfloor.org> - 2015-10-21 19:00 +0200
              Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on  Skylake Peter Zijlstra <peterz@infradead.org> - 2015-10-21 21:00 +0200

csiph-web