Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp567351pxb; Tue, 15 Feb 2022 22:19:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzK4D/W+RToTzcVIj2HGgapkFKoTknyVskRLXz//Q3LdbVU/Visg18aS02ltguTuEdRf5X1 X-Received: by 2002:a17:902:d353:b0:14a:18ab:298c with SMTP id l19-20020a170902d35300b0014a18ab298cmr901824plk.87.1644992357671; Tue, 15 Feb 2022 22:19:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992357; cv=none; d=google.com; s=arc-20160816; b=hdKMFOU4tqIYQ+JS1K2Pj8CTomt8i8qR+crP3+zdCCh9jge4HMp2B9EUxQHfPooQAE kZhBMtpmpl3yV160Y/Ln6G4jv2OpNnByfCdj3DlPsyQeozEro7qSclg8WFjmmBmP2k4k MdSM01ordGBDtrh297la1tV4tHoXG7xIAWPuonS7dlrKuTWVxX9UXCd3NZqd7oQTJmaF HbviadOIjOqTRawcp8XknC4Cd/ljnNN4kzhYckEYZSC5tEThH43UzzQa0bky8GHiiOjz u3tPGbxTuCZ6tDt7mC+xF3AGhUjwKaAOA2Ke+K/T0uQFy1ld+Q1fSMhQbRlDZ8gzaAkO i3bw== 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=ed0DvBP+K1f3QF5Ewx4kaCIp7iK5SB0WDtzvGvgXR8Y=; b=wU4RePxISO3KTyDCRVMIjlFvcyiHq0puVSu6g5wtg4KZbcB/lEaXsSOUStML4LGXfY hdFz6dxTPDpgyrhU6pNhMmBVtPQQhpyv2lrrSaTkA5ZwFGLQcCGNylhe2cR2GZrx64NL oukZKO0S+ON0onI6m2kzh7NSr/wt7YUilOFAo4NOJUtEkblPzaoE/YvHh87XwymyBwk/ +T3tPqI4dbUU70PkVe4fzYLZxcaBEwtET1S9uGoZGVmKsv2gmgulkBSePFQptV1bZUFR ryi/rc6hzJvk5SOAXlu32MxEFbDf1WHWnBXncI9Fq7kYSDB5E1meF2DLNCDbmgWL0dMq ahLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Tavmo/ST"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t187si32205456pfb.352.2022.02.15.22.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:19:17 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Tavmo/ST"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60307B840; Tue, 15 Feb 2022 22:16:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344546AbiBPFJN (ORCPT + 99 others); Wed, 16 Feb 2022 00:09:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234289AbiBPFJM (ORCPT ); Wed, 16 Feb 2022 00:09:12 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20D02F955C; Tue, 15 Feb 2022 21:09:01 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id q132so1142519pgq.7; Tue, 15 Feb 2022 21:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=ed0DvBP+K1f3QF5Ewx4kaCIp7iK5SB0WDtzvGvgXR8Y=; b=Tavmo/STkPM87v5QvmnaIJA9uwaiGi094499+s5845fdSfeqBajvmQp2MnCGYsM/gp 6pTatN8kwqiRx8xgMDpt34sdD2tn8PWJ6P6aWd2HB6wxhOqX4IeQmgx5giXhSURu3HNr CgWvDx1McGECUfzE23JM7X+2AXOQ7RWo/eNWYU/8+VEYeMKENQ1iPm5T5s7HCkpZd9cO tuAEhaCW7GPrHBA+jHv79k1GivJwU+46Hu9QvF4EiNgUjSviPDZ933a//HqAfgazd4Z9 pm7y+aezZsCjEREXf9gAIJLqa/43UtKHRgI87qBkJVcGOjpyLaOg+sTV99eA1HXy1vJy p39w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=ed0DvBP+K1f3QF5Ewx4kaCIp7iK5SB0WDtzvGvgXR8Y=; b=4y3uAflFV93NETNdUOurf+gTqKy9j4wfDwPteSbqCgYDcdFM7Mt+cjyvbWaQyVyUST QXEtoELb6SgCsn5L/OBBEwRA3tQ1MfSZTbhHcGpDqP4XG06Du76KAqYBTuBuvITfAtRz slEmaf91hLtu+TEvd+f+nspUPWYI5afjb8DrhoZRBuZityjy9+PlCSzkMcu1Cqrw4Qb3 0M5TvCmr5u5iYfWe1iESoJZ4pPjDjUCCLKxG8TgF2yXGVno5/5ZNI/Gkp/3uATn1tcHN MIyDLCfRu32ARAFMxb8/r/wMs4esUBJWGd9l074+SE00skf7Uv7wNsVSBIQVRptKiWFx uzsQ== X-Gm-Message-State: AOAM532hJt8qE135isvWOTQyZOZuyulVUyZxbn6S9KGlynY2dlhuqmh5 8qrLUn7Hbakxh/B9UrIz0TI= X-Received: by 2002:a63:9dc3:0:b0:373:5fac:6063 with SMTP id i186-20020a639dc3000000b003735fac6063mr852210pgd.531.1644988140627; Tue, 15 Feb 2022 21:09:00 -0800 (PST) Received: from [192.168.255.10] ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id 13sm28423111pfx.122.2022.02.15.21.08.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 21:09:00 -0800 (PST) Message-ID: Date: Wed, 16 Feb 2022 13:08:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH kvm/queue v2 2/3] perf: x86/core: Add interface to query perfmon_event_map[] directly Content-Language: en-US To: "Liang, Kan" , Peter Zijlstra Cc: Jim Mattson , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian , David Dunn , Dave Hansen References: <20220117085307.93030-1-likexu@tencent.com> <20220117085307.93030-3-likexu@tencent.com> <20220202144308.GB20638@worktop.programming.kicks-ass.net> <69c0fc41-a5bd-fea9-43f6-4724368baf66@intel.com> <67a731dd-53ba-0eb8-377f-9707e5c9be1b@intel.com> <7b5012d8-6ae1-7cde-a381-e82685dfed4f@linux.intel.com> From: Like Xu Organization: Tencent In-Reply-To: <7b5012d8-6ae1-7cde-a381-e82685dfed4f@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 10/2/2022 11:34 pm, Liang, Kan wrote: > For the current perf subsystem, a PMU should be shared among different users via > the multiplexing mechanism if the resource is limited. No one has full control > of a PMU for lifetime. A user can only have the PMU in its given period. Off-topic, does perf has knobs to disable the default multiplexing mechanism for individual tasks and enforce a first-come, first-served policy for same priority ? The reported perf data from the multiplexing mechanism may even mislead the conclusions of subsequent statistically based performance analysis.