Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4125199rdh; Tue, 28 Nov 2023 12:31:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg+M2kpC00W4BOzkqwEIvmRej+VJmIhSTYG27uPTMERGCsyxtnc6dT2xRCWJCf4ZGNiXVk X-Received: by 2002:a05:6a20:12ce:b0:18c:92f0:69c2 with SMTP id v14-20020a056a2012ce00b0018c92f069c2mr8180482pzg.39.1701203459660; Tue, 28 Nov 2023 12:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701203459; cv=none; d=google.com; s=arc-20160816; b=jakFuTwddUGhcxfckUfxIcIrCKuahoIH624PUSevezEauoHpkK7e6WCc85GwoH6Ryd U05ghW9uuW3Ygn6CevzixFUEsnY+egGYj9Pb62QhjPGB+TiQ/BB8przFtbRrwl565jgl onr2qxjtJhERIMs+uosG2rjCdZPWVqqr/6iwqHDqy5zNB9fbW4nZHMpQ1uvfZESrf9eu CkRDMMqllrSVbKrCQGNI9s50HxE9SUIha9rtpSit7YoIFoSVSKo2DEO7DX3Kk/+gZiZS pMLK8/25hr7QKG+B9Og19QW7L8bnRgLZ28ztzjrcUeZ2/FZC+SL9GGptp1E15bojMWob I9Tw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TNve6svgh/4hlE+jFxsWk142OklBeQDxEuQNLWSFLr4=; fh=+v6iOBhBPepiTm5jfh5hb/DbZOKRJ3o62f2r0DhfAo4=; b=df+Ugnyc4WeG9qvkLC0t6OL8OOkjGxVuxHPTI/QsodCjLFhxMCcqZX3kJYq/kDKVEp N7r753Z1ygIWCh9ug3S+FIeJalHulrYQaKQY69mt63PfPxGjknky25rqaKT83rGpgsR9 j3jZUSyUuc1C3jy0OEUmp6PQSbtOgL3NioFYJ4z9csUeSV5SQ28BxoMqlAQHLy1fPZ7m vMIE0W9tjDSvgnD0MzkIUSbUpTwi+8biLTkKtwrPkmDH4Er9g7ihz9ymdkQnhyJmUTpY 65+RXY1Di6DCmf5rSKC36SZ5Xaws6hfnv1cVB9JPCbeWa5lNSZvhW6CLWttMnScw/rE7 jpCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhKeSxSO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e1-20020a636901000000b005b8857bb156si12559797pgc.463.2023.11.28.12.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 12:30:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhKeSxSO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 44154807C5DF; Tue, 28 Nov 2023 12:30:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344778AbjK1U3b (ORCPT + 99 others); Tue, 28 Nov 2023 15:29:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345805AbjK1U3W (ORCPT ); Tue, 28 Nov 2023 15:29:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3151988 for ; Tue, 28 Nov 2023 12:29:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDED7C433C8; Tue, 28 Nov 2023 20:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701203368; bh=LZUDexNsDfHLTiZ4vVRpRhkkcAv3/p4UDi4s40i48v4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OhKeSxSO/+o1xVPh+tVwuB7lC0aY6qGjLmq8MfFmK6FOP6uqqFw7rQv6QJvQfn8fg Bwt9XF6Ohp8j0E0656s9FJM4udBDzPjufetxZD9cUL+o1M3/30QK48CIcRuxnCqVDG zTI/eu2XZtyWnYFmi9bbXafQIeXNNzKSDEZLRApPl9WZYgJPS2yB4xfE8h3f7+nwVq i3mn1qROrQqIG3yplMopoHS6dxOEy7v59xX39wQSmNi8wBodbgRg1nfxxgQAmoo3Fs zY+G8zm8UbLCFjilY/KzkvYhjG/dY6zSjyHDFfk0gm8N/E9Jd4zQazLFZauCCWrtfd dRISCTybmDIZA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 93DD540094; Tue, 28 Nov 2023 17:29:25 -0300 (-03) Date: Tue, 28 Nov 2023 17:29:25 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v4 04/53] perf mmap: Lazily initialize zstd streams Message-ID: References: <20231102175735.2272696-1-irogers@google.com> <20231102175735.2272696-5-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 12:30:07 -0800 (PST) Em Tue, Nov 28, 2023 at 09:55:22AM -0800, Ian Rogers escreveu: > On Tue, Nov 28, 2023 at 9:38 AM Arnaldo Carvalho de Melo wrote: > > Em Tue, Nov 28, 2023 at 02:14:33PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Trying to fix this now: > > > > > > 6 20.59 alpine:3.18 : FAIL gcc version 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10) > > > In file included from util/zstd.c:5: > > > /git/perf-6.6.0-rc1/tools/perf/util/compress.h:34:1: error: unknown type name 'ssize_t'; did you mean 'size_t'? > > So the problem was really the one above, that got fixed with the patch > > below, that is what 'man size_t' documents on my fedora:38 system. > Thanks, perhaps this is something clang-tidy, clang-format or similar > could help with in the future. There was event IWYU discussion at LPC: > https://lpc.events/event/17/contributions/1620/attachments/1228/2520/Linux%20Kernel%20Header%20Optimization.pdf Yeah, that is interesting, I took a quick look and it looks promising. I did this manually in various areas of the kernel and in tools/perf from time to time, to speed up the building process, etc. - Arnaldo