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


Groups > linux.kernel > #1566574

Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi
Date 2017-01-25 14:10 +0100
Message-ID <t3vuO-2ag-7@gated-at.bofh.it> (permalink)
References <sTmCt-n7-5@gated-at.bofh.it> <sTmCt-n7-15@gated-at.bofh.it> <t3csa-6Gn-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jan 24, 2017 at 05:41:22PM +0100, Peter Zijlstra wrote:

SNIP

> ---
> diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
> index 1635c0c8df23..a95707a4140f 100644
> --- a/arch/x86/events/core.c
> +++ b/arch/x86/events/core.c
> @@ -1343,6 +1343,8 @@ void x86_pmu_stop(struct perf_event *event, int flags)
>  		cpuc->events[hwc->idx] = NULL;
>  		WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED);
>  		hwc->state |= PERF_HES_STOPPED;
> +	} else {
> +		hwc->state |= PERF_HES_ARCH;
>  	}
>  
>  	if ((flags & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) {

I think that will work, I'll try to test it

jirka

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


Thread

Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi Peter Zijlstra <peterz@infradead.org> - 2017-01-24 17:50 +0100
  Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi Jiri Olsa <jolsa@redhat.com> - 2017-01-25 14:10 +0100
  Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi Jiri Olsa <jolsa@redhat.com> - 2017-01-25 14:10 +0100

csiph-web