Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756562Ab0HaBLC (ORCPT ); Mon, 30 Aug 2010 21:11:02 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:41470 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756440Ab0HaBLA (ORCPT ); Mon, 30 Aug 2010 21:11:00 -0400 MIME-Version: 1.0 X-Originating-IP: [192.55.54.36] In-Reply-To: References: <4c76802d.aae9d80a.115d.70fe@mx.google.com> Date: Tue, 31 Aug 2010 09:10:59 +0800 Message-ID: Subject: Re: [tip:perf/urgent] perf_events: Fix time tracking for events with pid != -1 and cpu != -1 From: Lin Ming To: mingo@redhat.com, hpa@zytor.com, eranian@google.com, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, tglx@linutronix.de, eranian@gmail.com, mingo@elte.hu Cc: linux-tip-commits@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 25 > > perf_events: Fix time tracking for events with pid != -1 and cpu != -1 Hi, I thought pid != -1 and cpu != -1 is not valid. # perf top -p 23268 -C 1 WARNING: PID switch overriding CPU In which case this could be valid? Thanks, Lin Ming > > Per-thread events with a cpu filter, i.e., cpu != -1, were not > reporting correct timings when the thread never ran on the > monitored cpu. The time enabled was reported as a negative > value. -- 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/