Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1031952lqs; Fri, 14 Jun 2024 12:34:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUntSlbsOEdrVLH7t6fTvyd4De0xYBDf56XlmmLFOfO0JDy6K93ZjVqDo7Im3teKNifAHMviriu67AT8XBNCv3wG5Wt1ccBV9aJcHABHA== X-Google-Smtp-Source: AGHT+IHsCERZXPxy3mt82UC/rYIg9l1QDMRjTM62PjBlcEgS+1DRChSbi3jDaDH9fas6yzVMMmEO X-Received: by 2002:a05:6358:491a:b0:19f:4c4e:d3c8 with SMTP id e5c5f4694b2df-19fb51706e9mr352411055d.32.1718393676117; Fri, 14 Jun 2024 12:34:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718393676; cv=pass; d=google.com; s=arc-20160816; b=S7e8D2VaKGTft0/ZtDBVvvUO9e7qT0aq120t0GatfSevL/jSjvXa3HZHw7Uwv/Nw+D iMSZ9LBDb6bJtw+BBp+lvdhHrmG6Jc1oUG1TXGyxF4p2h32ye8depo6RZ+qPwc13fEJp JAfI5uEBIuuwC67FYs7GMW/1Z4yYSviMrdmNpxP5btut6JxJM6JRGmpGHPEfGLFOh+Ov kKvJvuoGK8jK0tM8vNEM3aRy8rCHh/9MPG50SivJlePhSJ0kRrkuwzchKyAo0DXp4fPl i1QJezJECEl3Wkleqpe5gdyOaEpsOXacr9ITlAZc7bm2RiaJ0E3nQZHiCfovtjTgP8C/ 6oVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JW9lusn737QIh8sVSOjuBRJjwojbsTwCwxZ2DR3qfj0=; fh=JWtc3hAWvMOMW9JmHvVlsj37hecLCusonIti98vMZ9E=; b=BMjz6oZ0wycKxFAr4Gf2TReP6Fya+5B3oHEw9mbAfuO8ktxPHd8p5nnezYVXdBK2pp oT9ovxPFpqtOW08330dxSIB7m1CyVp8O4RzS33eU0vhFRPP9TQif9vyySDzIE1A0Fu1y PrRyzrLUW5fc1lJudeniB8ULzvjRDIPsaHHNOlgvdLMWEwggAzmGKuIn7uxU457wFQxI TEqIm+vT1z++CwmpBzrXDEyAKQvRArREA9gsSTGWH6keWruPhaw25mRtnGqmHeqRrStL C+D23uLtVkXmmOUBHH7se4TQGCIwysMNbzG91yVXTVWp2/Q3RMlVFpd6W2iQHrsjrL01 ZFCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bwkDrTTr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fedd5e91e0si4111788a12.163.2024.06.14.12.34.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 12:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bwkDrTTr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 445B7B24EEB for ; Fri, 14 Jun 2024 19:10:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CB671AB50B; Fri, 14 Jun 2024 19:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bwkDrTTr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 89B07188CCD; Fri, 14 Jun 2024 19:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718392190; cv=none; b=YHTg2nBMv1Bstue3FiAC3kox7HJsoQKc79iqD9Ozwy40y54s+tdEr+WiBSogihLK1Pr1A8ZCxIS08zm9lWM1548j/aKCreIVOCpjVYp4Oc7kLxHmqD2jLSlP0eSeJAosbIOvOjlpJPfGYawBCsK9ZAzLg04ftmmIw+JpYve6jio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718392190; c=relaxed/simple; bh=DGSt7WrCiXZzupZdO8+/84/UT48LDigcSB3517jwWow=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CcvBGe/wLOzQxuYuJjTgkgvThAaKw3aeWsnUdmbMBl6kFtE4gwOyMoAoAwEpAE8ZUIJw4M1EY0iDu8WjNHa6KvRqrO6h1rxmwQowDV11eqFkJpuIKzW98+f+nx9BAM9YdpmxZvEbSaJM2xqPIoeclAVE+CONMEimCjX5iauclXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bwkDrTTr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B779FC2BD10; Fri, 14 Jun 2024 19:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718392190; bh=DGSt7WrCiXZzupZdO8+/84/UT48LDigcSB3517jwWow=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bwkDrTTrCTKyyRuM7HbMFPFTca/9jnPoVf3EYfp7wCXnsc8ouQ2DbVU62wxZgH1BS 1XQp3574l8FXcfOQ0EdIB9GHzgb0er1UsKgemtePUwq0j0ikoljp3o8wYcCJalU21m sn7I+Qg7OxxJ42/BbwT87To3fi32R+UkBKBMNf9rska+VTFCsekukADexHnw7+1muh mzFj4FHk0OUHCclHQCbsSosX8Wo60ijzg5berlQ3WeQN3IrW9GQXy848TzflE+SZSA knCotht8kuAdKx0bgy4cyaaSCLFWC6uZylZfpZgECSjgvpB8IiehNPOTlQzF8zkkd2 Xh9ChYtwtJLLw== Date: Fri, 14 Jun 2024 16:09:46 -0300 From: Arnaldo Carvalho de Melo To: Matthias Schwarzott Cc: dwarves@vger.kernel.org, Linux Kernel Mailing List , bpf@vger.kernel.org, Alan Maguire , Jiri Olsa , Jan Engelhardt , Viktor Malik , Eduard Zingerman , Jan Alexander Steffens , Domenico Andreoli , Dominique Leuenberger , Daniel Xu , Yonghong Song Subject: Re: ANNOUNCE: pahole v1.27 (reproducible builds, BTF kfuncs) Message-ID: References: <4154d202-5c72-493e-bf3f-bce882a296c6@gentoo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4154d202-5c72-493e-bf3f-bce882a296c6@gentoo.org> On Wed, Jun 12, 2024 at 12:07:09PM +0200, Matthias Schwarzott wrote: > Am 11.06.24 um 23:26 schrieb Arnaldo Carvalho de Melo: > > Hi, > > The v1.27 release of pahole and its friends is out, supporting > > parallel reproducible builds and encoding kernel kfuncs in BTF, allowing > > tools such as bpftrace to enumerate the available kfuncs and obtain its > > function signatures and return types. > > > > Regarding packaging of pahole: > What is the state of the contained ostra-cg? I need to make a decision on that, it is used to produce things like: http://vger.kernel.org/~acme/ostra/callgraphs/sock/0xf61bf500/ As documented in: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/tree/README.ctracer But yes, it needs to get retested after all these years to see how difficult it would be to try and get it back working. - Arnaldo > I have no clue what it is and how to use it. Is there still a use-case for > it? > > Starting it without arguments only shows the usage string. > Running it with two dummy arguments: > $ ostra-cg x y > Traceback (most recent call last): > File "/usr/bin/ostra-cg", line 404, in > class_def = ostra.class_definition(class_def_file = "%s.fields" % > traced_class, > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/share/dwarves/runtime/python/ostra.py", line 154, in __init__ > f = file(class_def_file) > ^^^^ > NameError: name 'file' is not defined. Did you mean: 'field'? > > According to > https://stackoverflow.com/questions/32131230/python-file-function the > function file() does not exist in python3. > > This part could be fixed by replacing it with open() but I wonder if this is > worth it. > > As nobody has complained about it being broken: > Should ostra just be removed? > > Regards > Matthias