Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2113949rwe; Fri, 2 Sep 2022 08:42:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xIAZgyj5mC4PTAKSq6UVxzk7gQxSmX8BV8vN9znFUe5p2p9bM0dn9Fyg/2w2t7QBSgbS7 X-Received: by 2002:a65:5688:0:b0:3c2:1015:988e with SMTP id v8-20020a655688000000b003c21015988emr31010765pgs.280.1662133326748; Fri, 02 Sep 2022 08:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662133326; cv=none; d=google.com; s=arc-20160816; b=kBKnELL0NYKQ7CoiggUDBNiPfu7ZltwkrpYkEbMztWqADlxTpUAV2U8xKF1qD0U0vG CSktfmvXFnH7rRAvQdcL7uosMlYJPGZo4+xg4A+m6f/+7Uhhr4egJlnTQgf85MgesaWs A5zg/DdYAOGZKtrdIjrdv6iE95BLgpRJLd9USr+2PPZDNY9v16KqLGYlzE4Lmgj6Y7l6 zFVpdv1edw+IsywJ90w931MH4zmbYDf/lDnhzgFw/ylKjJ/rNUBjYFtScun8v+Lfr+gz 0LThViZc873/9YMfjpDOPA4nj8G8hHtPE8vJRu7gUHEm1IEYSeLx/aKfKjPflErFg/Ka 6aHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Nty069Qk6W2cHijy+tf2cqibHKJtBe7fQXSQ8RTpSnU=; b=tmTsw6OEQ0OVQZUTI365lJygWTe8glRW2qVtNytXhnmnf72Q75JdhT177SXQT0M5rs ubAC2/RFVKvVrud4pIZre95CEvtU0IoVmFkzcAdp3Z0oQw+Nvk+PR4KjFuALdLZKb5ha s+VEsBmmQT1GKpDZsQ2XGfTswBdGKwpiEiPGzMsswbCdj1UZhBoLm1NVfPZMMam/Uceh p0NolN0rXmq9vVkULhe75g+aZmG517nvH/VMlkYNmasPPyCH08NW3eA+KHUzzyns+yBr 7aTNG7lqqFf2KoEHWhYPMQMvkUw4FpaTnMrmGZp4h3xoVu3sZZI6zYXW4wFZzdFoD9Ur lChw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mj98jTD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a17090ae61300b001fb6311dbc0si2387207pjy.74.2022.09.02.08.41.55; Fri, 02 Sep 2022 08:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mj98jTD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236023AbiIBPS2 (ORCPT + 99 others); Fri, 2 Sep 2022 11:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236446AbiIBPRy (ORCPT ); Fri, 2 Sep 2022 11:17:54 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36005A61C1; Fri, 2 Sep 2022 07:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662130231; x=1693666231; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=IfcmcDyZGedEV2F81LC74u+mbSHwKTFMejAo0aMOmFk=; b=mj98jTD9NDVUknPCke903QAUVjR/5p1g609LZ5eVuG3jrnMKWuKrhjs1 QLSOHPqw4iGF76HgTnFvwvmLpgrrXQR7iV5IhgpjoyoEjClX+B0J4/GCe NyfFXTjG0BAgaOtNTDlYStQNco12VryVvG87pNWp8mO8Iqj5nAR2nHH+J tpyIdUYV59VcRsbGZAiSDuv9SFskuUBwvonGV1IfZv2LUGuyXLHnViajm 0aWBI+W0E0SGitGgZ5nEoSq70HYJYZSxy1EnvHkiSPZL1X1R1Kv1TuEPs CC5407yXHjG8RRqk7PpugvbZ/6lfHBMyfwm0C/jC7vy0cyCNYGyRmXtfW w==; X-IronPort-AV: E=McAfee;i="6500,9779,10458"; a="282981858" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="282981858" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 07:50:30 -0700 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="642930461" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.42.34]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 07:50:27 -0700 Message-ID: <2fd9b620-e9a8-9cd9-1b4a-6b13d829b2ae@intel.com> Date: Fri, 2 Sep 2022 17:50:22 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: perf top -p broken for multithreaded processes since 5.19 Content-Language: en-US To: =?UTF-8?B?VG9tw6HFoSBUcm5rYQ==?= Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar References: <10137382.nUPlyArG6x@mintaka.ncbr.muni.cz> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <10137382.nUPlyArG6x@mintaka.ncbr.muni.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/09/22 17:46, Tomáš Trnka wrote: > Hello, > > A bug in perf v5.19 and newer completely breaks monitoring multithreaded > processes using "perf top -p". The tool fails to start with "Failed to mmap > with 22 (Invalid argument)". It still seems to work fine on single-threaded > processes. "perf record" is also unaffected. It has been reported here: https://bugzilla.kernel.org/show_bug.cgi?id=216441