From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01C25C433EF for ; Mon, 4 Jul 2022 14:03:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234299AbiGDODX (ORCPT ); Mon, 4 Jul 2022 10:03:23 -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> 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.