From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D43F946A3 for ; Mon, 4 Jul 2022 14:03:11 +0000 (UTC) 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> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220701193409.p4ejod7olx7ngl5m@google.com> 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.