From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773AbdHCSEW (ORCPT ); Thu, 3 Aug 2017 14:04:22 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:33456 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208AbdHCSEU (ORCPT ); Thu, 3 Aug 2017 14:04:20 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 3 Aug 2017 14:04:17 -0400 (EDT) X-X-Sender: vince@macbook-air To: Peter Zijlstra cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Ingo Molnar , Arnaldo Carvalho de Melo , Stephane Eranian Subject: Re: perf: bug in rdpmc/mmap accounting after exec In-Reply-To: <20170802173930.cstykcqefmqt7jau@hirez.programming.kicks-ass.net> Message-ID: References: <20170802173930.cstykcqefmqt7jau@hirez.programming.kicks-ass.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Aug 2017, Peter Zijlstra wrote: > On Wed, Jul 26, 2017 at 03:39:01PM -0400, Vince Weaver wrote: > > In fact, current->mm->context.perf_rdpmc_allowed goes negative which seems > > like it shouldn't happen? > > Good find that... > > The below seems to fix that for me. yes, I can confirm that with this patch all of the various PAPI and perf_event_tests pass on my test system. Thanks, Vince