From patchwork Tue Jan 19 02:41:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "MOESSBAUER, Felix" X-Patchwork-Id: 276 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:b386:0:0:0:0:0 with SMTP id p6csp3207618ooo; Tue, 19 Jan 2021 04:42:48 -0800 (PST) X-Received: by 2002:adf:ae01:: with SMTP id x1mr4175929wrc.381.1611060168841; Tue, 19 Jan 2021 04:42:48 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1611060168; cv=pass; d=google.com; s=arc-20160816; b=fwXxcqgqhCTK0nQYEZgQlw+go6bLx368YfCw0dL3sVAURkDOV+Z+04Prb5FMzrJP9d 9wWLwybxLjeA46tRt0KVCf5Q+a4avepFep1+hN/goaUqBbSsID+Xfjw78nquPHMr/97I h/+UnR+u27dvNQM0UoAnql+gS2KzOuTGpdCRWup0hRFQZ2nJiqWEtAr3RRMOe2in94kO toarkN04lP/0pDBoJGTkGfB9kTAb22NdYXTb7aKJwzc03DvwA+ZwTiOXt1Ea51TF8Kwa /Enz9WixDQannmTgbVBhSpudAw+1cnEXou1utsn6xCsFqKXdUOT8eSQJfc+iCmA5Rdnu zElw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=RGqiMgS43t2T/JNArSAzonYiVhxLp/j9MjPqjV7r5A8=; b=tUFKIONVTmHdBFbLr7MvY/nRvp/TLc1ErU8/QwmzxRcikvECGTTvKLnboX8KEzree7 9FJ3uTKCOLv/RJgrfSo4Zb5gs0EQfTxVyLwLyQj73HIP/pd/b/MDRwweMKo3pN/DBnRD FiW2BCCWekH9DRojiFs3/vleSVmpn93pxHD4lKkFpSJMbyl8uZPCeg1Xj5FgNKaPJre2 FbF7kR1xJ1Uo6sPzYFifNikqCnGqNyPmD0YhAzIi/q0CIotaI1eaay9NtbheF/FO8tb7 7eSab62SoSeYfPh/nvgYsewPnc2nbkDuJRmjmeEYB9NB3DeMt2FhEsPp9zYq1O5rZKjw 1LwQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=hQkspoPC; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbczk33mgwucrbsfhtoaamgqesfkzv5a@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCZK33MGWUCRBSFHTOAAMGQESFKZV5A@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id s8sor110981wri.56.2021.01.19.04.42.48 (Google Transport Security); Tue, 19 Jan 2021 04:42:48 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbczk33mgwucrbsfhtoaamgqesfkzv5a@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=hQkspoPC; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbczk33mgwucrbsfhtoaamgqesfkzv5a@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCZK33MGWUCRBSFHTOAAMGQESFKZV5A@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com ARC-Seal: i=2; a=rsa-sha256; t=1611060168; cv=pass; d=google.com; s=arc-20160816; b=gfOts94uZ7lM9aIrV9z0RkIbU5p2wIjjFL3675yr2pYLgltjPPp3cnBfD3TNIsSyTy ffj0hqn65Ed+8SkAm2/Yk5afwHubGih0JofFHR4Iq6EywZDlEgaWKq5rua1Ab01OAZ3K cqiVPUXMM4xnPxzPbzw8CAG8xE6zkn00iYXSI231ySPUZsq8HxxpNFgBIoGohnKzcT4v 9ukP54CR6m2sncEahcLae0UPPKXCR73yxJLHV5CWwKm4XAEcxy/ciKcJkSKLFCihbRSU 0HUWS6wRLyPsRaQcJ1nDt7ejzJjLZu+BthwfJ6E1wgHUZpUfDkBmT8hc9xt+XaXMF3Zq upTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=RGqiMgS43t2T/JNArSAzonYiVhxLp/j9MjPqjV7r5A8=; b=IzVn+xAIctk2utBvtzBMp4ZWB9Vgtx3Uy/lA5inLj6ZV3SLK+qckc/0AtVddza5yDg qU6DukkxpiPY+9Eu6ySQpN3z9CG8po3oI61kwXeCT7WZamvz94MqvLRKvS5PK5OCRA0j xSrcSZKOBkbA5WJD0z14SAQ2wUxwJq24BDyfYHpWJx+MXBAUPBp0EEjgd8IyHPJ8p+YV WxL62yKtcGTQUPVkhz5FFNZzQ9AQ8ohtmt0Fd2+2UT/AeTXpvyvl6ufUlJFvPvJOwVmW Zg4Jx+LCz1K/3QbKXmyufCTIoCEKIMuFiBGQp5w/4+q5bhTwGO1DhG3XSjJm43zxST1T dVTw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=RGqiMgS43t2T/JNArSAzonYiVhxLp/j9MjPqjV7r5A8=; b=hQkspoPCW8hyPPoVwV9q/9yiOCj9vcoZmJDJ3acemRnt20H+RnPqj6bLBnv/KJsEj+ ty12Rh55Dy+bY4H0sREX/4XUe+XH/nBUxElYn4WBt2kT7nyiQuezVz8Z63M9vLHwMlx1 k0z2SsNR3DMxdrMAmcBo7MT3h41JDqiOqKKzJ1zHwV3o2bTZ8Q+yZ8iZhZpkoHzknet6 BvvJVFOgS9S0+Fl55EYykESMxln2YRQNfy7zhROJrMRA1pbeFuhGmLkdBiFORgjni/k5 S9CGGaWMzeO0WmA4uayC6ojFLKAm2q4HeHinAND34mhfdazkWdkvu/lxTzNFHftZAqPG 9LMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=RGqiMgS43t2T/JNArSAzonYiVhxLp/j9MjPqjV7r5A8=; b=bBuzUn9uupJgQkLaVG+cxcDdBATXwMz+0eNRJIb8E9f7b/iqh3yhsluwkoq9LSXKR2 Kg7IBAO1U5Lf7bJuKkgw1vfswc65s0ClCOCl+f2F+wWAqgQR73KK3K9Qp75m//TrJ0/z ORCyJ5fZ7Mz4KozKaKaVsJv1WMRWbG5F6HMZgnNe3pD4XAQkFYzX79+rs1Ta6t/u0nY6 AY2KBGoT4J7Max6lphjm5UQ0BitEW8Z+93Xcy1nPrFgyg3Dnm7apffxX0RQrGXRSqewc D8BSTtHaMZPMOO83QDPNIic5ND7Dh3wLLKZu0tQfnZIr3INjEdKr/6qu/sfLLDnVSePx dNGw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533itFRTnVgPEED40KEgb5pk397xBVzXCr1GaxmQOeyJzf6XWZzt 4Y7KlQCFGT4FXzN9DyMOEmk= X-Google-Smtp-Source: ABdhPJxmALY+VgTf2YtsHLzXWZ/CR1hCXazjq1rCGE+01rULleMbeHZUodNoPwZNFDn6PSiPg8u2xA== X-Received: by 2002:adf:dc87:: with SMTP id r7mr4247846wrj.305.1611060168503; Tue, 19 Jan 2021 04:42:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:a54b:: with SMTP id j11ls2712518wrb.3.gmail; Tue, 19 Jan 2021 04:42:47 -0800 (PST) X-Received: by 2002:adf:c40e:: with SMTP id v14mr4224514wrf.163.1611060167664; Tue, 19 Jan 2021 04:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611060167; cv=none; d=google.com; s=arc-20160816; b=YR818XpWzBkyCDMtQE7fKr2dEste/3GCUuv94KGP3QIX0UgxdJs+/56v0TqWEqyCp3 EswyMZV8ZB3HxZoTy0Vyf+zefYgizhmkkekieJuai4iVtyxFcvTund6OTkGofkkjcxxx bSbMDMLqbGrr0vOg3kFPUaxBB5dRTBBNt+In6ADCpK85RI1YozlVSFOVePzpBxpjPOAr KhQ9xCVU/T9Lgn/SCqiDh1u6xwqWIrq0y5YzyVaivku79B758+TocVjlATacSQZ38GIk 5AmlwJFSi+dgRXIZ8RHLQoWON2mStUa4csqW5zuODYYwQV2D2leTOGsf2RlAD+72Y0l9 ZyTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=NWVNJXhMJiCsogomk5V2C3x8lIVzAN9z5UwZ4sYTsRY=; b=s1EkpDy5RMQWlhioLYoR8I4O//TSv4HX5/PUaT1li0DSuEsk0qxrS7uKF1WQcQf1nr S9M1BdWGrEGfmTWqe1DNhsmGUAZl2zCbMbrvS9cXfFTQV94kOUzz1QoItVVaoWy0jOQe S3MtUWnBHMXL8KEEgRe2gs48sGMpf9hJEL+S28IDAZvvhUaEwTSFe/O5ZqeMs04D32TY cqzy1Wob2dDZN3XX15xZAaXEwEe3ytVoCfrIGTOVtV7jcUCKuq1KrIPvqWW9INBMoq6c 6dVQxfFQeu8A3vr5R3fmBi+zUtL8MnlpTwhY5OzYP2bLtxZCcH+Ul3heG/yqISoEn+Fx cI3g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id o203si156216wma.0.2021.01.19.04.42.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2021 04:42:47 -0800 (PST) Received-SPF: pass (google.com: domain of felix.moessbauer@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 10JCglFZ003906 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 19 Jan 2021 13:42:47 +0100 Received: from MD1T0KAC-VM.ad001.siemens.net (md1t0kac.ad001.siemens.net [139.25.0.7]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 10JCgkbo025009; Tue, 19 Jan 2021 13:42:46 +0100 From: Felix Moessbauer To: isar-users@googlegroups.com Cc: Felix Moessbauer , adriaan.schmidt@siemens.com, henning.schild@siemens.com, jan.kiszka@siemens.com Subject: [PATCH 0/1] RFC: Package perf from linux kernel tools Date: Tue, 19 Jan 2021 13:41:57 +0100 Message-Id: <20210119124157.12662-1-felix.moessbauer@siemens.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Original-Sender: felix.moessbauer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1689319027692381620?= X-GMAIL-MSGID: =?utf-8?q?1689319027692381620?= Hi all, this patch adds support to build the linux-perf package that includes the kernel specific perf tooling. 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) 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). 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. 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=860957 Best regards, Felix Mößbauer Felix Moessbauer (1): RFC: Package perf from linux kernel tools .../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