Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2342462rda; Tue, 24 Oct 2023 22:52:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOHnaHuHW3vKBpylbFxOcpdl1i2T4T9lsTydEGHWo9y/I/F4B2ygZbnxP5h85kSsy71Zge X-Received: by 2002:a25:374f:0:b0:da0:4d4d:da6a with SMTP id e76-20020a25374f000000b00da04d4dda6amr3167081yba.42.1698213135404; Tue, 24 Oct 2023 22:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698213135; cv=none; d=google.com; s=arc-20160816; b=juAGKzsG00bXoSERi5Gifh86GQ+rrcucpprqeDSC2yMMQTnTBKK8J/jXuEfUTzkJ/g UOVcaCp8eWekfSMglqQ0oFGYmhENZQ5nnkZhrwkuqVuB82NjXvqDCpcry41yfjQSriar lz/8j5KqzAaixcuJluZSG6U2vYgeS4KXvE+vERa3vlIbhFyXksOJmZLqkZIb+Nhl0fvy rBimPFurePlTOq9sn0SIa5SkLYdoPPj2KHv0CBX6quiSdMNBL25uaC++5TWOgheOvARc 79krwECGPVu82W2Fjlu4DuHPGV53pdI0HnsP+EEzaQtfWGlker0YrRXM09Hbf7iI+Jb/ GaAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=Uj+qbqJKNuIDlVDxYmj1xc1zfGSxv+gHg++IimWO3Sw=; fh=na4lkmJk+MRsN+s4Vj/JJ1SHDyMKHcca4/WA1WLm3RI=; b=0RXhMhVqTNRmA6AelDuWVdUBZxDAI9mjo9kVrE1DOQw4L1KJYYo08mkyvXgC2yE4Xn 7UHiKhBFj3Wg+F9T9NKiXZ84B2FBNS4EZeQ8HicAtNGr0HcLQR02ZgZW3hAe3opO8RAe xojoQvziLxcQv00Jdc6eS4fcXbfIHSOQDhxfbs9mDjmsRRxY870vsLrkPYsNNHzkrQdw KV/b4+lXOkMbKhiEecdCX8ISoeR1SlGaZI/QHWrMOTB5uTxpxXBJWY2Vy+R1p9qZL0F7 /HJ41fKrILhavnDX0rvjgjFYYV+vfSDjt33S46YFcM+/LwItm9ufYfDWJ7RihPlNCbhA TwGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 204-20020a2503d5000000b00da035a8702fsi3558902ybd.316.2023.10.24.22.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 22:52:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5A35F80216B6; Tue, 24 Oct 2023 22:52:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbjJYFwE convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Oct 2023 01:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJYFwD (ORCPT ); Wed, 25 Oct 2023 01:52:03 -0400 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F1E12F; Tue, 24 Oct 2023 22:51:54 -0700 (PDT) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-27d0e3d823fso3670181a91.1; Tue, 24 Oct 2023 22:51:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698213113; x=1698817913; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2TMBfJBS6+PFjOoTjREUjGF4g9nD1G3ML89T7sHAIHE=; b=II2AkRLF6IPNL205+OTGUatUsEU3SWGKh68OXC4qkEjkHvv7/v6H3vwlLPjc8GgMdC N2qkBfEF82oYLnuVIuMoLNduH0n6Rr47LzNvOMi0Td3E0+tbHasPHdgCg2i/R3mxA9D+ XFGjvLD0qpR7oQCbc0HsZ0SsbCRlCjJ0eA5YfYUNNvB2W1shJ9bp0bAxzZufjsajFepN 5WGyW7LCdCoIfNNkdfALHkIrNBD+GUW+aeyYbyoHy0nJ8CnXPKeXUrVkwAvX/fMhXpt4 yhimHvBMxQeZDUycJeC22P4WTpAP6euCZujB6D3Z5hLZ3AxBltjeOtSTX+fxt+uNAzRb 4xcw== X-Gm-Message-State: AOJu0Yy4OVnmG1wOX1fmaWfryP4i+MNWYVHJnomzOw1T1MQYVd5I1ZMB zak7GpKpqMam8geZqhrOsPIAcg2ItnrEXjUrMks= X-Received: by 2002:a17:90b:3784:b0:27d:8fbd:be95 with SMTP id mz4-20020a17090b378400b0027d8fbdbe95mr11992237pjb.28.1698213113310; Tue, 24 Oct 2023 22:51:53 -0700 (PDT) MIME-Version: 1.0 References: <20231012035111.676789-1-namhyung@kernel.org> <87pm15vw5r.fsf@linux.intel.com> In-Reply-To: From: Namhyung Kim Date: Tue, 24 Oct 2023 22:51:41 -0700 Message-ID: Subject: Re: [RFC 00/48] perf tools: Introduce data type profiling (v1) To: Andi Kleen 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 24 Oct 2023 22:52:12 -0700 (PDT) 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. > > For you I think you focus more on the types than the individual > variables? That's a slightly different approach. Right, you can see which fields in a struct are accessed mostly and probably change the layout for better result. > > But then my engine had a lot of limitations, i suppose redoing that on > top of yours would give better results. Sounds good, thanks. Namhyung