Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3062208ybf; Mon, 2 Mar 2020 22:11:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vu1oUYtoT1G5V5A4ZZ4tCkU77LqJngsz/4D03X7DwSx18QsAcPAdXa0uowjjW2239UoXi51 X-Received: by 2002:a05:6830:1e76:: with SMTP id m22mr2307810otr.295.1583215878437; Mon, 02 Mar 2020 22:11:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583215878; cv=none; d=google.com; s=arc-20160816; b=fkUnHtkpSwnKWXpv2nE4Z97y1F62pd3cVIMAUXksrK5b+cKVTQMpZj2NQ8PXMckFeT I2SJ5D2EpYc/v5V65Jvx7W1iHKRSE3s3tS86hVekq6KLXa7PV2FbIS5ozr5IddYRMN7x ut/FAWEOo0bM3UF718gmtPyS83RDrarQ0+8UiMNj9JY8iYbvkxMk6vGna4CDhVfteVHS 34TqqjGksi1NzeTvCa5vURM4uX/ivrhtfEDg3kA8MT88rDiDDBaZPrK6w4wX2GpaTqb2 weNw8gobg6uKApAYKZu0zLIWf9dekLE5tUOQ/0YRpd0zsLqcKetT5faQE+eY3mmPqQTY /X2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=L44R33MZfBo7EJfh7yHeMAVpYiCz+bW7Ff5nJ/4YCbA=; b=SqVEsyLqo0xbCvoDJAZ1KChF/VOyRr/tHCpvTlceFTEnxGLm7M4XVzkj2ZsC4uC24g 85nzqfa3irT1CSL94lpvtc7jXqdrrcFWs1tJ1RcB2tbJZ4MD4+KLZG2TGabc8exq2u46 V9Bk/c+GhC3QSM9RSPXezg11UK3HyNjQwawOYBDG2R3DVF6pt4eA7w1n6GFdZo68Zwpd ecsecSu3Zmc1gzg8NnA3s28MvTHcULq/TUjo7B+qghbrJvrLXR3fIEVK27YX/RE+MAbb mNCw2CapjdoJ/yvVbXXiyviBlKRTEn/CSxIAaQVeVhWaQuX2LCEkFATkuc2LthG8UTfG 5eCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mDGa3l0i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si7093421oia.253.2020.03.02.22.11.05; Mon, 02 Mar 2020 22:11:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mDGa3l0i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726080AbgCCGK4 (ORCPT + 99 others); Tue, 3 Mar 2020 01:10:56 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46123 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgCCGK4 (ORCPT ); Tue, 3 Mar 2020 01:10:56 -0500 Received: by mail-lj1-f196.google.com with SMTP id h18so2094157ljl.13; Mon, 02 Mar 2020 22:10:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L44R33MZfBo7EJfh7yHeMAVpYiCz+bW7Ff5nJ/4YCbA=; b=mDGa3l0iB+Fa9PTGs6OTbYeBy/ampfYZk7C1RYlTpL5OoFt8b+uXUEpUEXcHVdqIva SRzcCxP4HA2y5CE4D9xgZexYgTdAIt8ewGax5jf2aorMSiYG1xJuKodHR9cK8/K9JGld zB5zLyi96CN4BPi4qGNMSu5ctyHtYFVehiLxBW8BdT58O91MwPqFrbTkwA4ES48rsOSV U68bhRgJwqRBi0KuLkhVyFr8xQlrt20MWM4Sil0TwVXHrO5SWRVmpBSCdOM8GecUKa7t xWJ15KBZhcS0wuSrm0PnZT90T6dD0oMNJeFqW8AJflIDNb1vIuwPweEM8CS5Yij5QuIG 8hXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=L44R33MZfBo7EJfh7yHeMAVpYiCz+bW7Ff5nJ/4YCbA=; b=tupakajuELr6tfiGRSrrg9zs2Tkgb24Z4zswurm8lIyP7XZjVlvdajv2kUZTKxcbWU PDUPczdRZ/mkIkivamlzOivZYoZSPWUKL+VZYAP/Pykza7WpCJxxcOi+pruSoA3Wwzti OH9ZzizFNq2MjWaaZJeJ86Q9ViSURYD3vLe2LOM8LNYrCJKHh6ZYYM/k1ZAN6syWoxSo eWR5VOhka2IseYyN1AZYMRAMtq7aRt6NFcygGAWZRXPepRK2JxxzinNZ7ivcWCKIA7kD e8FeuKhP0VO1q0TZW5wmNAnWbKiL5D8KVasSpFVAP4+1L/xNt82SVwgQMRx8mSV+Bh64 JbCg== X-Gm-Message-State: ANhLgQ3pL15e00vOPUNMJHQOB3uYHzf0ez9G39XeGWCT3EiO4bd8aBDA eEDxw26jB52GiI6NoOeYYrUDS2zNcdnqLzeYm2wfYOga X-Received: by 2002:a2e:84d0:: with SMTP id q16mr1492785ljh.138.1583215854320; Mon, 02 Mar 2020 22:10:54 -0800 (PST) MIME-Version: 1.0 References: <202002242114.CBED7F1@keescook> <202003022046.4185359A@keescook> In-Reply-To: <202003022046.4185359A@keescook> From: Alexei Starovoitov Date: Mon, 2 Mar 2020 22:10:42 -0800 Message-ID: Subject: Re: [PATCH] kbuild: Remove debug info from kallsyms linking To: Kees Cook Cc: Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , LKML , Alexei Starovoitov , bpf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 2, 2020 at 8:48 PM Kees Cook wrote: > > On Mon, Feb 24, 2020 at 09:16:17PM -0800, Kees Cook wrote: > > When CONFIG_DEBUG_INFO is enabled, the two kallsyms linking steps spend > > time collecting and writing the dwarf sections to the temporary output > > files. kallsyms does not need this information, and leaving it off > > halves their linking time. This is especially noticeable without > > CONFIG_DEBUG_INFO_REDUCED. The BTF linking stage, however, does still > > need those details. > > > > Refactor the BTF and kallsyms generation stages slightly for more > > regularized temporary names. Skip debug during kallsyms links. > > > > For a full debug info build with BTF, my link time goes from 1m06s to > > 0m54s, saving about 12 seconds, or 18%. > > > > Signed-off-by: Kees Cook > > Ping. Masahiro what do you think of this? It saves me a fair bit of time > on the link stage... I bet the BPF folks would be interested too. :) The build time improvement sound great. Could you please resubmit for bpf-next tree? So we can test and apply properly? Thanks!