Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2811982rda; Wed, 25 Oct 2023 13:03:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxA4RHi+tjwp9vLnM5j8ub45xsfJ6s8QNt6IUd6VZvTSXi49byNHVpLUQq5CN66aIWHo8D X-Received: by 2002:a25:40ce:0:b0:d9a:516a:8870 with SMTP id n197-20020a2540ce000000b00d9a516a8870mr16231089yba.49.1698264216931; Wed, 25 Oct 2023 13:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698264216; cv=none; d=google.com; s=arc-20160816; b=lXkeaQI8LpZ5tK3bXyx2SeFClt6pK8/KEwhbvd8gxOfENUwqavizOETS8qItM6rgLN yrwdBYOhSwcQCCWGUol8PJyRhcT3iFe3m9IYDRhtmgjZANzkHv516ocaO5Dxbwhjz7Yf P3+6HIZxYO3HWTfSsBf+TrFLqwfh/vQj7DgDdjbJfRXle2YzbCv3vhiyrL7tEkLNSBR3 F1UHLwnbtIQlIH8qfr8oBYLAKkIIuiHkrisy88rFvBwLEEbYhov8Hv/t7FBKttL5qehs H8J8ToGjDPmSDCqiRvBqCjD3dSt36J7qYeWbRjHg7nIgXLJdKMnjoDQQKzvm/g8mYsb+ D1ng== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zYiCP48uzsOtyj+9nPCIMTPo3Uq65gRgFyKnhA1vevA=; fh=5BxsNRiDvlezYM/2JWn+Q617vZy9qr6PfN6hmqikjKc=; b=Y30F6QG2rp2k2dcwvgzcZWPQ9DMbTFLWLMb9CNnQQy/jzv7ZsXDA1sFispayKbUCYo PKcr/hUEpsFk2mKmKvphrzb0BL9As2v7F1oF/Y1b96PVHCGQ7eZ/GkerrXqVKLerutKN umVNnaXG8CTnb1IFZRfK/aHe0zwpC8Hby0jBBXTKajz3mEjQaKlVaD6a2NqBd4Xi14Oo kkZgkVY4TeeaKqiION+0bT8iJA2NA8OgHTCdorkPvQf5kfke7WZZeREtifeMe0UCx0aa NRM+PHiWp7WSrvyzfeSwqGjnT2u9liodeZIBolj6s4Glr8cAKZtSW4kodXyuMT5HiCNh En7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KdrfpdGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x199-20020a25ced0000000b00da066edea10si3661658ybe.693.2023.10.25.13.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KdrfpdGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E0B28815839B; Wed, 25 Oct 2023 13:03:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234735AbjJYUDZ (ORCPT + 99 others); Wed, 25 Oct 2023 16:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234679AbjJYUDX (ORCPT ); Wed, 25 Oct 2023 16:03:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D04183; Wed, 25 Oct 2023 13:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698264202; x=1729800202; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=YLZGgBkznfjPx0x7i1mnmcfOOiepLxrJSAVTpEABg3I=; b=KdrfpdGKHZzii6dq6/Njstq5GoQlhBH3oJQZrwmL9AP5KtqjEwYc9f/w S75sMxRCMuUeoX+aToXqz4jFdf641drwhyTlaNFhxax/tOWJWXV8WEazp gn1PIjdFvRT4xLLLFToJPOJ3zpgQtL32mDN6h98sN+W8O9TZscy5vKomc kxx1Xqllgm2qCitCFcNt4ntzBHjd8LNSONVB4VSPDSCR8T8ZT4r3qKD+e kjqzaNmwVcnt4rTjtW6aOvNYgPe7Y+mCyi58LHdA/H1XeFPgPEpurUT4y lnC0W5ketLiAvQkZJC3sdJ2T0FtbBWK10QbTxg7gluo+KL+HmcRw3Ziu6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="473624936" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="473624936" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 13:01:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="902664878" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="902664878" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 12:59:31 -0700 Date: Wed, 25 Oct 2023 13:01:53 -0700 From: Andi Kleen To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , Ian Rogers , Adrian Hunter , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, linux-trace-devel@vger.kernel.org, Ben Woodard , Joe Mario , Kees Cook , David Blaikie , Xu Liu , Kan Liang , Ravi Bangoria Subject: Re: [RFC 00/48] perf tools: Introduce data type profiling (v1) Message-ID: References: <20231012035111.676789-1-namhyung@kernel.org> <87pm15vw5r.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 13:03:34 -0700 (PDT) On Tue, Oct 24, 2023 at 10:51:41PM -0700, Namhyung Kim wrote: > On Tue, Oct 24, 2023 at 7:09 PM Andi Kleen wrote: > > > > > > > > > > > > > The main difference seems to be that mine was more for perf script > > > > (e.g. i supported PT decoding), while you are more focused on sampling. > > > > I relied on the kprobes/uprobes engine, which unfortunately was always > > > > quite slow and had many limitations. > > > > > > Right, I think dealing with regular samples would be more useful. > > > > My code supported samples too, but only through perf script, not report. > > > > See > > > > https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git/commit/?h=perf/var-resolve-7&id=4775664750a6296acb732b7adfa224c6a06a126f > > > > for an example. > > > > My take was that i wasn't sure that perf report is the right interface > > to visualize the variables changing -- to be really usable you probably > > need some plots and likely something like an UI. > > I see. Your concern is to see how variables are changing. > But it seems you only displayed constant values. Yes the examples were not very good, but that was the intention. Values can be much more powerful than only types! For PT I also had special compiler patch that added suitable ptwrites (see [1]) that allowed to track any variable. -Andi [1] https://github.com/andikleen/gcc-old-svn/tree/ptwrite-18