Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2100372rda; Tue, 24 Oct 2023 12:17:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCQVAprDbtt3ybVUyjqBLiQPS+p1LXURD15+OvbYJl/bJArnQAoLqMkyvm9lTRKjh3LnDB X-Received: by 2002:a05:6a21:4842:b0:15d:fc71:1b9e with SMTP id au2-20020a056a21484200b0015dfc711b9emr3223875pzc.49.1698175021798; Tue, 24 Oct 2023 12:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698175021; cv=none; d=google.com; s=arc-20160816; b=oHdaZfal1LTGUzjT2lu+CoC/CaxQndLe+GbugViLpsVqVXpif5yqSJQIohFM0LAfA7 +7Lid4trmsaygxvPItCeuLxzohjD41pE1IW73RueV8Znn0eq+uh4lzMZb2w5HGIifGdr vkqml34iU0eDfAH89iHMWhcTeQKXHHK4+z41TWiARMIs2rtxVoe5dJ2l5jV0vqz+RueY 3zaCP36JRsbUEQfQ3g9vM7wL1pBIgpIhOQczYnnuiArq37WYJEewgtzNvCwpZ2ZdKcpn fG9JzEz6YsI5LR08oAzgRC/g7P5DvcKGE+Qb8vh9mYMqk67wopbZ2NG1labxpVYn9vU/ F0Ig== 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=MXhfoqmdbkf1EKsxL4PtHzhhkCqagrgccOVj37GWOGI=; fh=na4lkmJk+MRsN+s4Vj/JJ1SHDyMKHcca4/WA1WLm3RI=; b=Tgx4rlT0RhAGzKLatATmPHOnhC9Uq0SD/apE8DQOudxBgK4X3I+sllkWzdZ1PBfldL 7lRh3fBK5MjgZQS4k2RmAMphN5G9CHWpXHYcBh2badca97txKRhXymFL5/5jGxxdcTVY rWyQDRKBAZIMgyIuP9btkohyuBcrl4TqpmlNWRjyUpE27jS0DIloRiKLHUVceyNDHQ7M 5KBp9/J5wKp8VvlJEhYu3RHWtmPgS8jEGoVvgHzS3oEHT9t+OD0XOgjOgHU1pWNLC8hg f9MNLbu26Ejkr9Mbfa9GrmPTeQlMvfqVZIz0FDXc2rY9Jdo0hHuWDrdeBMgUt0Q2/3x8 dhVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 69-20020a630248000000b005b8fb1e0312si575763pgc.248.2023.10.24.12.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 7A83280490A3; Tue, 24 Oct 2023 12:16:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344171AbjJXTQs convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 Oct 2023 15:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbjJXTQr (ORCPT ); Tue, 24 Oct 2023 15:16:47 -0400 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966FE109; Tue, 24 Oct 2023 12:16:45 -0700 (PDT) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-27d0acd0903so3300557a91.1; Tue, 24 Oct 2023 12:16:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698175005; x=1698779805; 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=vlrMdORzuIhiCBvkEoOY6AWWIm1ZLrThelr3CoWzGZs=; b=G2uQ1r6dV0Sexax7tleAPNzf9PDdohQaUNLyjU71+QWblGZhm34T/sknLmvijR7fCN 5Ec1aEklFtawW92pLmBRIAej8T2d8VAzEdPYvJ7RgDRzjAR+5aQNroGuDQ4CCGUgju/A rPpbqDzJRdGP56P/VSb60x9WH9GhbnNB9c0ycZ9XCqDMxHEjube5Baeu8G10nBE8YKNs koBDYaKedhO6zOWX0Lyi2kyfKI+Tce/VjrrsI1dPcT1+euresj7QW+0wTqZB4qfDPp9q RP7WN0ifzV96CxkS0hpB6JX7b3fAoEWZhuzZdgwOIipuYaB9xldzUgpOEEqqY//nj7Ha mS5A== X-Gm-Message-State: AOJu0YzX/6F7qhMfzE5uujK0Ts8ifRzVpplBE0lJc7tJeJl4IAE5FDTv +MvI4e+nHlCVK1MWUhLuIcTSWROdZ+YgkNANyUU= X-Received: by 2002:a17:90a:199e:b0:27e:3342:5c1f with SMTP id 30-20020a17090a199e00b0027e33425c1fmr6738107pji.43.1698175004908; Tue, 24 Oct 2023 12:16:44 -0700 (PDT) MIME-Version: 1.0 References: <20231012035111.676789-1-namhyung@kernel.org> <87pm15vw5r.fsf@linux.intel.com> In-Reply-To: <87pm15vw5r.fsf@linux.intel.com> From: Namhyung Kim Date: Tue, 24 Oct 2023 12:16:32 -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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:16:58 -0700 (PDT) Hi Andi, On Mon, Oct 23, 2023 at 2:58 PM Andi Kleen wrote: > > Namhyung Kim writes: > > > Hello, > > > > I'm happy to share my work on data type profiling. This is to associate > > PMU samples to data types they refer using DWARF debug information. So > > basically it depends on quality of PMU events and compiler for producing > > DWARF info. But it doesn't require any changes in the target program. > > > > As it's an early stage, I've targeted the kernel on x86 to reduce the > > amount of work but IIUC there's no fundamental blocker to apply it to > > other architectures and applications. > > FWIW i posted a similar patchkit a long time ago > > https://lore.kernel.org/lkml/20171128002321.2878-13-andi@firstfloor.org/ > > It was on my list to resurrect that, it's great that you are doing > something similar. > > The latest iteration (not posted) was here: > > https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git/log/?h=perf/var-resolve-7 Oh, I wasn't aware of this series. I'll take a look. > > 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. But Intel PT support looks interesting. > > Perhaps it would be possible merge the useful parts of the two approaches? Sounds good! Thanks for your comment! Namhyung