From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6919450737082630144 X-Received: by 2002:a50:fe0e:: with SMTP id f14mr7080381edt.159.1611141175468; Wed, 20 Jan 2021 03:12:55 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:994c:: with SMTP id zm12ls110825ejb.11.gmail; Wed, 20 Jan 2021 03:12:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqak0CduXLBuWyy0SXj7TAasyJYKRritGTfPTdfGSndfN0jdTh42jDTz56NGAMqVItIRt0 X-Received: by 2002:a17:906:2315:: with SMTP id l21mr6081199eja.183.1611141174578; Wed, 20 Jan 2021 03:12:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611141174; cv=none; d=google.com; s=arc-20160816; b=LlE+aKuDxnkIlTyB7c5yxw/jh+aZ5C8/Dd6bsu51Bi7MIsXmcTOHhoBHgHJS/Zz0R4 pACubnHFxIy0+63nHYbNqL7UE+DlEx/Tdu4nQZk1gDsT1Jo2q230xbHSIdMHafaTFZxJ rhVdycqOHyOy0EIzw5MrOl81qALo+T+DNMZZy18Fq1/xsl/8adBXxzRQO8yXrKvnsAbX UlqK6TgltMDKGsF8NoO3YpWb//5EAQcI4eA3pVcmOlGDb/XM80QiNX4vM05JU2UlbNDQ NULtz0RAISIwsq9ygkZavizyw0pqci6p81yeNs6ov2RLpT9q9N3C7S9VMRuCS6sC81Zy U4vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=+lbUcV47xBaL8LSNfFECEdKqKAVFLHf+NJIQEVQWxFw=; b=e8qrsQ2zLxWcABDrjSdhewFHf3EhDp2gBSWHGkSJ30S25ge+VPcZ9/jBslEikH4ako XV4Sannixet+p7AvZpNuMeEQcJHBXOxcu5o0tjezVurF6hUdwmxe4TbJ2IhWug7BZ8/k ldl1JHfA1dbm9j3XqMH+k5iIy1Mz4+4khnIVqH156vg01WxoUeKhiTuoTx+wi7aBZmSv w3g+fy4L5nmeME9NgG2oAppEAsTfqjv8GMIc/o++P35u/6ZtgsomDfiYeTmAsf7GrgM6 qAXoWBX+G5yOBFbkjtZ1LxhedkfBaJrXOq5bebyIK4KtCX1qOWyMnUTMQYWMqL8ozN1Z MM1Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id k20si112042edx.3.2021.01.20.03.12.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2021 03:12:54 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 10KBCsPM000753 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Jan 2021 12:12:54 +0100 Received: from md1za8fc.ad001.siemens.net ([139.22.120.228]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 10KBCrwX024989; Wed, 20 Jan 2021 12:12:53 +0100 Date: Wed, 20 Jan 2021 12:12:52 +0100 From: Henning Schild To: Felix Moessbauer Cc: , , , Cedric Hombourger Subject: Re: [PATCH 0/1] RFC: Package perf from linux kernel tools Message-ID: <20210120121252.12fe7d43@md1za8fc.ad001.siemens.net> In-Reply-To: <20210119124157.12662-1-felix.moessbauer@siemens.com> References: <20210119124157.12662-1-felix.moessbauer@siemens.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-TUID: VxzfwIXL03tG Hi, i think perf support in general is something we clearly want to have. As far as i remember Cedric might be interested as well, adding him to CC. Maybe a split into the basic support and the python bindings is useful. Because those python bindings are pretty different from upstream, and they probably deserve a test-package if we agree that we want to support them in isar. Henning Am Tue, 19 Jan 2021 13:41:57 +0100 schrieb Felix Moessbauer : > Hi all, >=20 > this patch adds support to build the linux-perf package > that includes the kernel specific perf tooling. >=20 > During implementation I tried two different approaches: > 1. package as part of the kernel receipt (as Debian does) > 2. package as a regular package (similar to how the kselftest is > packaged) >=20 > This RFC implements approach 2 but tries to be as close as possible > to the Debian upstream packaging. > By that, we use the same patches from Debian upstream to build our > package. Note, that these are dependent on the exact kernel version. > Here, I used the latest available bugfix version from upstream > (4.19.160). Perf should then be compatible with 4.19 kernels (only > partially tested). >=20 > A major obstacle in implementing approach 1 was that the patches for > linux-tools are not trivial and have to match with the corresponding > kernel version. Writing that in a way that works for various kernel > versions was something I was not able to accomplish. > Hence, I decided that it might be better to avoid that much > complexity in the kernel receipt. Most users might not need the tools > anyways, but probably a custom kernel. >=20 > Finally, this patch also builds the kernel specific python bindings > of perf. This patch has already been sent upstream, but is not yet > integrated in Debian. For reference, see here: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D860957 >=20 > Best regards, > Felix M=C3=B6=C3=9Fbauer >=20 > Felix Moessbauer (1): > RFC: Package perf from linux kernel tools >=20 > .../recipes-kernel/linux-perf/files/rules | 53 ++++++++ > .../linux-perf/files/tools-perf-install.patch | 58 +++++++++ > .../linux-perf/files/tools-perf-python.patch | 55 ++++++++ > .../linux-perf/files/tools-perf-version.patch | 119 > ++++++++++++++++++ .../linux-perf/linux-perf-4.19_4.19.160.bb | > 11 ++ .../recipes-kernel/linux-perf/linux-perf.inc | 46 +++++++ > 6 files changed, 342 insertions(+) > create mode 100644 meta-isar/recipes-kernel/linux-perf/files/rules > create mode 100644 > meta-isar/recipes-kernel/linux-perf/files/tools-perf-install.patch > create mode 100644 > meta-isar/recipes-kernel/linux-perf/files/tools-perf-python.patch > create mode 100644 > meta-isar/recipes-kernel/linux-perf/files/tools-perf-version.patch > create mode 100644 > meta-isar/recipes-kernel/linux-perf/linux-perf-4.19_4.19.160.bb > create mode 100644 meta-isar/recipes-kernel/linux-perf/linux-perf.inc >=20