Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp166807imw; Mon, 4 Jul 2022 07:06:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s1NjGs3N07NZavIVV9EEozU7JMHnm6lbj/GfHpyBAvO0/SxdyTYdKrGuZuqTKHETz/8UjX X-Received: by 2002:a17:907:2d8c:b0:726:2b37:6d44 with SMTP id gt12-20020a1709072d8c00b007262b376d44mr28769495ejc.224.1656943567625; Mon, 04 Jul 2022 07:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656943567; cv=none; d=google.com; s=arc-20160816; b=vjIwD11ce0907aD2LEFlmqVIrgxu7qgB8Mp4S87lTsPuFGScuId2I/8yrB+PJxsI7S fZcxyi0VmQHU7KkKvbCaGmXu481hzCNoHtMns2ViensItxXAIFIlG28TYypxRkJ+ES4c DBJ8nG/2BGkNK2dmjlIDmUCpHnkUEGGXLN6yrxEzcPEOfxICj0YAhHqO1zMsEy4WQYLI 99UYh8QlI2ntNLfGXW1C6YPDymh7YhXrYxOZ7Er3MagxIv3XYyPuPXHAxDSIm8F9OYU2 sy0bBenxIjAxPYFGyfrs3Ajd48zBaWeXx9T3612tPbF3+f0RVYgimq7OtpnFYkgY5d/n JF6g== 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=1T6SVyyOJpN9/GWpMLEq69oLc1h5UxF4v7bv25UoGhs=; b=cDGChBDeF/Vrl2K6cEgDcOeVWH8GLH1uHnOBD8/UHRotL0bAf3M2/rdlhfoU2nKT9a ZenBeMAv0cMJ1v1wU/5HW9IWRyFMrtFqpdjUY3tzKAwWx2/xRYcYaRMTj5pAR1pteKev EtC8R1uCzwDUJtNKoYUOeswtfimBoJjbsyfq7HqCRzwAD47s8zVBq4E/nSwhqdCd46he hmK//XHYFQdsWKiTmh101kBEDIiaScXtzRQCzTZv1Od7a4H9bIDhz8KotqAB9pU0NKzN r278zFjHMEFDwkVuzAfO8G0SdFMwBOiCx6x76Djzha/N5TpUF1L9hqz4gsQHD33VyA3M X/Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=uppmf7BI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a056402088200b0043a167786e1si5974532edy.431.2022.07.04.07.05.41; Mon, 04 Jul 2022 07:06:07 -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=@infradead.org header.s=casper.20170209 header.b=uppmf7BI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234024AbiGDODW (ORCPT + 99 others); Mon, 4 Jul 2022 10:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233511AbiGDODU (ORCPT ); Mon, 4 Jul 2022 10:03:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2077BE39; Mon, 4 Jul 2022 07:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1T6SVyyOJpN9/GWpMLEq69oLc1h5UxF4v7bv25UoGhs=; b=uppmf7BIrnYV3iMe75idjW/LOU I3VPn7L/oZPOqnGb/94W4U/NMq3zD/SH7ecWMnFZbuvF9xjt/X1xja4Cw8V0AxDYN4qaB/Nd07KT6 ZdkeIMyyMZU/8jd5ZVHsxvlIAKoGWhMP9knmHSSyZv5zYdpDyRG7nrsBuQHP9rAE0NB8UbxRiwV8y LjPtthp8jZIJH4dcnsCHWZnMevofqlomb3dfy9GRzKmrGfB6fG0GttcX4LoNRg9fvgl6v80pv5qYO kQyXWnuLtpz8Xc/tdtCEzhA75gB18DxLcB7zIBzdzGCpMo8stq28TxwbbJuNUR/y8lC7ZdArMfrxe xXo1Bggg==; Received: from dhcp-077-249-017-003.chello.nl ([77.249.17.3] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8MfD-00HLfn-VJ; Mon, 04 Jul 2022 14:03:00 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 7AC20980057; Mon, 4 Jul 2022 16:03:00 +0200 (CEST) Date: Mon, 4 Jul 2022 16:03:00 +0200 From: Peter Zijlstra To: Fangrui Song Cc: Bill Wendling , "Jose E. Marchesi" , Ruud van der Pas , Nick Desaulniers , Sami Tolvanen , Vladimir Mezentsev , clang-built-linux , LKML , Yonghong Song , Wenlei He , Hongtao Yu , Ingo Molnar , linux-toolchains , elena.zannoni@oracle.com Subject: Re: plumbers session on profiling? Message-ID: References: <87mtf7z0rt.fsf@gnu.org> <6F9E9D93-3913-4022-9384-D809C8EF7715@oracle.com> <878rpgpvfj.fsf@gnu.org> <20220701193409.p4ejod7olx7ngl5m@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220701193409.p4ejod7olx7ngl5m@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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, Jul 01, 2022 at 12:34:09PM -0700, Fangrui Song wrote: > Instrumentation based PGO has the nice property that it works with all > architectures (the compiler supports) and does not rely on hardware > support. In addition, it collects indirect call targets and string > operation sizes which are very difficult/impossible for sample based > PGO. LBR samples should provide the indirect call targets just fine.