Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1908966rwb; Fri, 12 Aug 2022 08:41:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7poXA8J0knNT0UwlvgPrNSyqa668VJ7Qy6CttpfJaZI+E/NNxcKjD0I1yrmkdsl+xRbI4h X-Received: by 2002:a05:6402:4442:b0:43b:c866:21be with SMTP id o2-20020a056402444200b0043bc86621bemr4222708edb.28.1660318884325; Fri, 12 Aug 2022 08:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660318884; cv=none; d=google.com; s=arc-20160816; b=hVjp/0nhvR1slx9jJfZicfIu/a1D4CZBcOlUTE33ydYsQ5nQeqfqShf5ck55qTJ9oS BXXz2SbsLpdv6NID5dX8TaLV4Bklfu5dzUPGSD4zPVAXR/dI5zoOy/CgTtQYjZvLSZSm 3Yns/qmPF0wST6x398dnIwl8FB1F4uJIuepABTYRp9NpRoDaTtdtYJD/FyANHcgzCq2s xxgohCle5/mGpUpgXkHuHKWiN5fB8t+Y4I3ecw/xOg2ddDMleRtIsxFCe0Ppq1pUHv2w d4o+jRL1dTEks3VFY5FfJUZj3sZC5dEpiNGCPt+/kEv2cWBaq2utWhHLWSar75hyOHoD sKpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rtQ2oj7YSn/gbh3jMKvBJQDThusJmtQ8+ZqWZmJSXcA=; b=gxxoXn7eqAsY76VMA+qvecfuwXuMZl7qSZ1dFOddFscygw/lduiwqYL3DHwZWVFjtx M6y7uQM/jHhIp4ysmov24Bcleht7a7pEBHkJhhCnarUkJGcBz8c/XkCTsUDj/6LtIIVL HstdfF8W4xlEpZacxC1hGbp3+zfLL2Co9u4M50ee0V5SoihM3rp881p3/8drpyIzYwRf f0LGXpaF94dxsTk8JBgcj2cMAHyXHozyrmA9ULobW3t7HpMApJxGh9BUhrzppsL7aitz 0P+fQiWvAs34DBDFdBgiTe0gdGPUt26JtG+77BXNhDCUtHT9XwWrkmX/HCtPlA3XO+iL 7Blw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aI3Lgtky; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa7-20020a1709076d0700b0073151b45047si2575062ejc.996.2022.08.12.08.40.57; Fri, 12 Aug 2022 08:41:24 -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=@linaro.org header.s=google header.b=aI3Lgtky; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237852AbiHLPU0 (ORCPT + 99 others); Fri, 12 Aug 2022 11:20:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237666AbiHLPUX (ORCPT ); Fri, 12 Aug 2022 11:20:23 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166D1B16 for ; Fri, 12 Aug 2022 08:20:21 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id kb8so2583377ejc.4 for ; Fri, 12 Aug 2022 08:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=rtQ2oj7YSn/gbh3jMKvBJQDThusJmtQ8+ZqWZmJSXcA=; b=aI3Lgtkys5nGO/IzF9hKpacnqblRSZ8BULX6iKtqVwXw96On7EY67hsUqnsnARm10O Qm+9INAzLurLw622ZfF469LHTkzda70y2lZJcjwLQnhd414+DYtIzAj1q6TreKowJVpv 0eTf8DmRj6TinmoH6LyrFol8JN/VltD0DHeoQe+gCQKB/Us4iaVKIARt4CPPJYLUlgD+ IboMJnrrITy4Fjyn73tjxDTO6nFsDz/Hvk9Yz8h9Hx3QbNZMX9fsLmKPYTZTKQgb039i 0p44nD+lDO1yCaJrdRGjODCmxpaRookG4rUw/d7+ZzUTNop02aT2A46uF/eEVRlXkFBc s+Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=rtQ2oj7YSn/gbh3jMKvBJQDThusJmtQ8+ZqWZmJSXcA=; b=w/HAIgUsr8rozp9Z/TZGL2BdCPztAv//4wp2eLoXxAjgitt4r+HeanDqxJo4Bidw3z IwO28HFBpc0ub6XwYAw4pDwttw0/U8gOoAe2sy4EAghzmyfXmzJv41mCtwyKFMFhGIXv Y71UVWVGfj6sp56uWf+Mx3+9zbPAVg2ea8NFd3Qwfo2T+kMegM6k4CX/N0Sw92cZq9bp anE/yz7rq2V15n53V1I2cKMS9YyKdAfOMutM6eGt7yIets1dGsF0iWANcCoMUIvhK0MM NNn1w7w5dOXWaqTtBfrt0jgBHm8lQ74dY/DdKjpog7zpdKn7ED4eAQPLjiZmRumd79tX kwTQ== X-Gm-Message-State: ACgBeo0j4XRyFkZxhCd5z3BhTgD4h1w13MPGE9QfwwOdTW6AapLj1tTU tS3bmVRrZGC2sAHeXUiaMd1X8A== X-Received: by 2002:a17:907:75e7:b0:730:bc2f:b26a with SMTP id jz7-20020a17090775e700b00730bc2fb26amr2964073ejc.738.1660317619472; Fri, 12 Aug 2022 08:20:19 -0700 (PDT) Received: from leoy-huanghe ([104.245.96.132]) by smtp.gmail.com with ESMTPSA id a5-20020a17090680c500b00734b2169222sm873749ejx.186.2022.08.12.08.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 08:20:19 -0700 (PDT) Date: Fri, 12 Aug 2022 23:20:10 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , Namhyung Kim , Ian Rogers , John Garry , Will Deacon , James Clark , German Gomez , Ali Saidi , Joe Mario , Adam Li , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 00/17] perf c2c: Support data source and display for Arm64 Message-ID: <20220812152010.GA74978@leoy-huanghe> References: <20220604042820.2270916-1-leo.yan@linaro.org> <20220811064122.GA860078@leoy-huanghe.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Fri, Aug 12, 2022 at 09:43:07AM -0300, Arnaldo Carvalho de Melo wrote: [...] > > One question: should I later continue to upstream the first patch for > > syncing the kernel header perf_event.h after Peter.Z comes back? > > yes, and we may have to backtrack and find some other way to implement > this if he is opposed, as he in the past didn't like > perf_event_attr.type namespace being used by userspace only records such > as PERF_RECORD_FINISHED_ROUND, PERF_RECORD_COMPRESSED, etc. > > In this case its different, I think its ok as we already have > PERF_MEM_SNOOPX_FWD and PERF_MEM_SNOOPX_PEER probably will be emitted by > the some of the architectures, from the kernel, right? Yes, as I know x86 generates memory samples from kernel, and SNOOPX_PEER can be a useful snooping flag for other archs. As a last resort if SNOOPX_PEER is rejected, we can rollback to use existed flag (like reusing PERF_MEM_SNOOPX_FWD), though this would be ambiguous for expressing the memory operations on Arm64. Thanks, Leo