From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6919450737082630144 X-Received: by 2002:ac2:5970:: with SMTP id h16mr4125983lfp.338.1611141718741; Wed, 20 Jan 2021 03:21:58 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:6145:: with SMTP id m5ls2639774lfk.2.gmail; Wed, 20 Jan 2021 03:21:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaCWpmfEgsvhEE8gSNX1L8ZEGUbTQZzH4VvCcCOWrIRlzP/Q+FK2myturoMeFyezk6F8Wx X-Received: by 2002:a19:ec03:: with SMTP id b3mr3599987lfa.608.1611141717681; Wed, 20 Jan 2021 03:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611141717; cv=none; d=google.com; s=arc-20160816; b=SLyQxYCrtyhWru+nR/c+Y+2SjJqjCURLPkoFJTiDJWVhoSsTPn9fy3SGkOD9nl0HZY /vKamzJCVqGbKYTLb91vwfCFlSwbrahQC2h3c1YyzQxso4PSjOvBVJpoFr+jf5Io9hU+ UvXpwh9Cqh1rTO7PbdORLMpgPSExA+2/aQ35hKkTVe6xlR02v/sc6Slgg6XRNKg9Wa1W kfGAsQF2GMPGNMN9owABLQc3mXKX+pGOkYMcF1+ZwZiB7lVCPFgsGSPvuDvxFOqp6Ng6 thntJ/igWg47ZwNjQfF5nwb8Pr2yKRfOtaYiqxsgt6Fwr1pMs3PeKP4Fk8Qw2GQ0BeQf mteA== 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=TLjNoy6CEk6vZnxsK8t3FkQGCGbkPVogUpTlscmD6lU=; b=VpWAR1HImPORZ0qTtvAYWO9k5628OdWqDnaYHQEBb9oROowJRSHKQtr49nYl9sPiRG Cp09aQ7XHc1S+SeqS9SG03xOyCmZFhgWg51fRXommLux1RmLTYdzbmHMIIfaJ2CqBPkc mYnT7Myc98r8kkcLS/RtPGubu7QbUyAGKldGzIWk85YQNOX0i+xX9SiXj2BnBpB+n7TF OXzspLGZjGjHEMrShpglBFkUuF1KbpGyupCO4GkEWiyvk8rRcjBqe3J2WYhhLYfRclMl T1yglX07opjzsW7n6qt/LQND6XRwOFKCs4Ds1tEeeUP+bg4C+wEmR0gibOGbk2qwzo+y dhZw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 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 goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id t21si54879lfe.3.2021.01.20.03.21.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2021 03:21:56 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 10KBLunt026755 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 20 Jan 2021 12:21:56 +0100 Received: from md1za8fc.ad001.siemens.net ([139.22.120.228]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 10KBLtbQ027629; Wed, 20 Jan 2021 12:21:55 +0100 Date: Wed, 20 Jan 2021 12:21:54 +0100 From: Henning Schild To: Felix Moessbauer Cc: , , Subject: Re: [PATCH 0/1] RFC: Package perf from linux kernel tools Message-ID: <20210120122154.176325bd@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: Ple7AxUirKcv For a v2 perf should be added to scripts/ci_build or the local.conf used by it which will probably reveal problems with bullseye and stretch, maybe !=3D x86 as well You will get access to a Siemens internal CI for that and other future contributions. 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