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 09240C433FE for ; Tue, 11 Oct 2022 02:15:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiJKCP4 (ORCPT ); Mon, 10 Oct 2022 22:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiJKCPs (ORCPT ); Mon, 10 Oct 2022 22:15:48 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2918C7F0AC for ; Mon, 10 Oct 2022 19:15:48 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id r20so6504271ilt.11 for ; Mon, 10 Oct 2022 19:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=H/xYrhJE+jRHh/6xuRZ4OUPEvZUDe865/O/aakyh1Jc=; b=cA3mVR/CGxcV72s28yIpSLl8Ry3QNBNtiqfQRJk1LI87DGdgCtvhtL6ju5NrdFgp0v jYbavGUnyyFdJJdSvAc+k/dXxseV1w+wYt7qd2Z+qBFjnBIe0LXWbBKllfNKCbfjAlGe 4S75Ef/hxbmI7DLha0tUVkEeTJmS1s/2ot+vQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=H/xYrhJE+jRHh/6xuRZ4OUPEvZUDe865/O/aakyh1Jc=; b=PHJJzVR9bRQkgvMBTR/3umo/ulOnjmZmrnkbkD/o49HDBVpn+7NqbRgq4tiNIKB66j XFTGcK0IB+5VxuwbE3VoBipkCYs9jB7fZtFi1S+E1A8UKTe69inSxNBJZRsh3wvWBssh UAuBxjAXV+2sUIrvRn79hvvNd6wK7YhTpUA5TbMctdtoKzJJQ2anQn+Rm6c35FX8IoD3 PrzbZyLESqAraRNjzijYQ+WNjfD8O87k7ozKUrnezgMH2VkBtI+cs75rS0MQALbTPOOt brUjyf9Q+ZMBJ/DqiEZ3cL6vscAHnlZU8EMfeNpmR6HbiIeSuJYLXtJsk4O9+kDnxcC8 6nhA== X-Gm-Message-State: ACrzQf1QhFuHJ5O3XKoQfzYaehlTrAnerTJToKcymd2aYI8OdRjDvouy PdaF1YAqffgV9qylAXPUrwU802LDGebmYjSSDkVv/XULZ4dU5A== X-Google-Smtp-Source: AMsMyM5JQvbMqETxKQHEq6txeP+r87znPWfN/6DVQDwiA28XRis95uxqOPRsPOisPJqXnkwrVBqASlH34ysfeq3CL9g= X-Received: by 2002:a05:6e02:1749:b0:2fa:5de2:4cc9 with SMTP id y9-20020a056e02174900b002fa5de24cc9mr10531673ill.214.1665454547546; Mon, 10 Oct 2022 19:15:47 -0700 (PDT) MIME-Version: 1.0 References: <20220920082005.2459826-1-denik@chromium.org> <20220922053145.944786-1-denik@chromium.org> <87h70zk83g.wl-maz@kernel.org> <87sfjxhh4k.wl-maz@kernel.org> In-Reply-To: <87sfjxhh4k.wl-maz@kernel.org> From: Denis Nikitin Date: Mon, 10 Oct 2022 19:15:36 -0700 Message-ID: Subject: Re: [PATCH v2] KVM: arm64: nvhe: Fix build with profile optimization To: Marc Zyngier Cc: Catalin Marinas , Will Deacon , James Morse , Alexandru Elisei , Nick Desaulniers , David Brazdil , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Manoj Gupta Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 8, 2022 at 7:22 PM Marc Zyngier wrote: > > On Thu, 06 Oct 2022 17:28:17 +0100, > Denis Nikitin wrote: > > > > Hi Mark, > > s/k/c/ > > > > > This problem currently blocks the PGO roll on the ChromeOS kernel and > > we need some kind of a solution. > > I'm sorry, but I don't feel constrained by your internal deadlines. I > have my own... > > > Could you please take a look? > > I have asked for a reproducer. All I got for an answer is "this is > hard". Providing a profiling file would help, for example. Could you please try the following profile on the 5.15 branch? $ cat < prof.txt kvm_pgtable_walk:100:10 2: 5 3: 5 5: 5 6: 5 10: 5 10: _kvm_pgtable_walk:50 5: 5 7: 5 10: 5 13.2: 5 14: 5 16: 5 __kvm_pgtable_walk:5 13: kvm_pgd_page_idx:30 2: __kvm_pgd_page_idx:30 2: 5 3: 5 5: 5 2: kvm_granule_shift:5 3: 5 EOF $ make LLVM=1 ARCH=arm64 KCFLAGS=-fprofile-sample-use=prof.txt -j8 vmlinux Thanks, Denis > > M. > > -- > Without deviation from the norm, progress is not possible.