From patchwork Mon Aug 19 07:41:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3323 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 67DBF3F1F3 for ; Mon, 19 Aug 2024 09:42:40 +0200 (CEST) Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-53335b2f40csf844242e87.3 for ; Mon, 19 Aug 2024 00:42:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053360; cv=pass; d=google.com; s=arc-20240605; b=aeuEBjk6Zd3hLutOf8akBD9Pp0MRTXBwEzX6g64Lyf2U83tS2zRDz35zknOyNtAxxm RxbEkwY+sAXdpvFnvirENfY0IoCLQx+iXn4uHdZqbmGCX2c4A3FKweGdyTY10NUnGOxK 1Vqeh3/eD4ubCMz685VqqZ6PuNZznAZsNdbX8Vj/0UczhMCciQnjktYZZnAKg2GN29W/ qV5PMFwhKeeS7cE7vnKiZOHAV2bggK/OPIFkdPFKMTWn1Zh2AaSno5FXGXGBSW2a0tAN jdARsGkuDEO4qg3+6GCBaeBwIwtH/h1ySgvgGAgp/BhpjxOZk6YAPohLHXAp8emkDvUi rSlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YfLnDm/qk5yxu54JMHxa1W6bJXmWUU8rkKu7LEF3G8s=; fh=Ms2e2rxfSFCt9dzQVZe34F5Cibu1xli1jabIHCe83j0=; b=DBGmngI9B/KfLQZGMWKGoxS03zvKoEe0XtnOesgM4YiJASXnvHhSkr5t9hNKJr4nly faGnS8qjhAqScwcTrIWMZR9SWdXZoIe1OuMlXacNk/zHmkcF9PohbJAIV/2+fMI1f0v1 KDd4Iy2UQQ/CLx7lHI4cVINYJU3HQjKApqFSebF5qhj6mm1CE5FfbCqR0Yfy7NhdzsY6 k9TBoSqpIarid1c2EoU5NlTIUqixHkfmn30c51KOIdqXqP3K5LrUdT64QO6XKu1HIm7O ud7uava2BudRWe9dDiOYQUw7i8dsSaAJcecHcThv8FWkg4m1qbK67R7HgbTGVbQtje8E LifQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p2kllHwt; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053360; x=1724658160; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YfLnDm/qk5yxu54JMHxa1W6bJXmWUU8rkKu7LEF3G8s=; b=g9S7SI5xHZqALNcuH7/LQts7h814sP6pl9KGfYJKQX6baOzOlauRFGv2tULQh4ecMF Y/DuWc2T0Y5ZzFGXhM85OpRSVf1KK+5J8WHrWirYWHX6qub+SZXjP4NfMBMOCPmsEi6n ZUrUCs7qKXQPPH6TS5hRGyz2KCx5yPLIBLPP4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053360; x=1724658160; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YfLnDm/qk5yxu54JMHxa1W6bJXmWUU8rkKu7LEF3G8s=; b=T7jrKgZSuSvstMExQZyk2sFtf9ZxRFF3EozFk9/vTmU1clH0HySs65ynRSO64G2gpD L5GhFMFlNfiDvmQvoqh/1FSY6f1T3dWqREK5Qq9zeWXGa41il8TQTgM1s5krgfLd+jl/ 5fsWaLqfc6rRKTYz5ULaKC/yRbRidvGj4iYt68OVcAFxjPzlyLge5oo0wu4y8QZ1yr65 77qSbR353FtGd28GzMb4C8YgGvTn6S2ajdQLDbZFloMjIeR5Zps4bjOf4SDhcRQ6jlUM iuvi3Q6tuC86b0RqmzsmD66UxiJJIR1HOsrAGOKnDjaQp7HM155nVc9xDuZqvcmrBquW USNg== X-Forwarded-Encrypted: i=2; AJvYcCVDvpcSrZRWLL6iOCsueHDeblVCOv8ti2JYqvL0VTYc5TNWYxD+Sy9PSDdaqO7CBxxgMQQFqBGzIiV78vAopjdmjZPF1KxCdovqbCrhwVcWYtZ6qjNo2U/wacC9Bw== X-Gm-Message-State: AOJu0YzLZUY9vyCGqHXeZbfpaKyE5xNx2ZTCgio7mctI/y5y7Cm+fL3x bQO/EsmI4Pb0bMNXLdgj2GN4ufOn7WDOSO7Xl02l6711PE6wcNi5icmmKmxrAHLG2A== X-Google-Smtp-Source: AGHT+IGFpkqh6zOvROPflClHWnE8IMehXpgxpN4SwR9OeVc2jg5280ZWZdmUlt/t/Ndcj998c8UXKA== X-Received: by 2002:a05:6512:238b:b0:52c:a016:5405 with SMTP id 2adb3069b0e04-5332df3696fmr5357168e87.8.1724053359611; Mon, 19 Aug 2024 00:42:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:440d:b0:58f:749f:1c6c with SMTP id 4fb4d7f45d1cf-5beb3884af6ls1740433a12.1.-pod-prod-01-eu; Mon, 19 Aug 2024 00:42:38 -0700 (PDT) X-Received: by 2002:a17:907:96ab:b0:a7d:e8f6:224f with SMTP id a640c23a62f3a-a83a9fed530mr471083366b.20.1724053358063; Mon, 19 Aug 2024 00:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053358; cv=none; d=google.com; s=arc-20160816; b=amal2QYmKrdvU4ZT4QHSI3EQxRZKmlvIha0apDOvH22CAM8m3D8piOyNJWBlfbGn3z DUqaGVYB/ouEQIUKnBuSdOfs0PlQyFJ0aj4f9YasK9PfPew6ryWHUbJNRXEuyEqEN+Wt ZvosCVCNwYqSO6wDQCEPmK9+nzv1t9imIb3Yw0tMEwS88vId7PIMAHeay0hdBxa2zaDN e19+DSylV2vEPAQRf1/gxRrDs2f1mOXBUCBwRnc8D5bwYzXpPjHxao3CyuoDnz+7z4Ud 8BQ9tKx6AfhswSIR3l0sYtGOWfX8fVMNSeNdavD2nbhc7mY6wHm6kZ9h96GKNtbmVhLo NZCg== 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:date:subject:cc:to:from:dkim-signature; bh=p91+RErlHcKRRRKmH07+D2y4R2mxrPUxN2u1GJ0B8DM=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=uIrEvrgxnoBkQ7O0i2i7BUtgCIe76QHeNS8n6QsJ/fcz97VTuNGZNrQTSGfn25iUYk MsEkrOeKwnYu0QD7hwbberZ+Kk/nrSEuKfZf60e2hxSd8O/Ko01LgnjGhSnsVt6BpQ7c sPFIVY36n4GcBQff45KfbSpK6BTvomHW1/1EZuBJrqxb4RSKe+0yOgpP6XICAv4+p0pW xlJ6BuNVBeLuu6jeOjgR/xYgplxIc0reIeBS7SaCcJM1LI4XGabuW4XCuQOq9fb2mY1o i+OuK1q6GZVXJY1IyPysC2YwPhOyigX/PKW8hF05hUjiGQ2tjDXy2Lp9XN4sl2Kj6UeH IZrg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p2kllHwt; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a862d028049sor27002466b.9.2024.08.19.00.42.38 for (Google Transport Security); Mon, 19 Aug 2024 00:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:94c5:b0:a7d:48e3:4117 with SMTP id a640c23a62f3a-a83aa0c143emr440089566b.68.1724053357405; Mon, 19 Aug 2024 00:42:37 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:37 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 3/6] rtla: Add kernel configs to enable tracers Date: Mon, 19 Aug 2024 09:41:59 +0200 Message-ID: <20240819074202.34144-4-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p2kllHwt; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , rtla is entirely based upon usage of the following kernel tracers: - timerlat - osnoise - hwnoise which by default are not enabled in linux-yocto. Add the .cfg file which enables them, and add that file to the sources, so that rtla can work as intended. Signed-off-by: Patrick Barsanti --- meta/recipes-kernel/linux/files/rtla.cfg | 3 +++ meta/recipes-kernel/linux/linux-yocto_6.10.bb | 3 ++- meta/recipes-kernel/linux/linux-yocto_6.6.bb | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-kernel/linux/files/rtla.cfg diff --git a/meta/recipes-kernel/linux/files/rtla.cfg b/meta/recipes-kernel/linux/files/rtla.cfg new file mode 100644 index 0000000000..a36f2c8afe --- /dev/null +++ b/meta/recipes-kernel/linux/files/rtla.cfg @@ -0,0 +1,3 @@ +CONFIG_OSNOISE_TRACER=y +CONFIG_HWLAT_TRACER=y +CONFIG_TIMERLAT_TRACER=y diff --git a/meta/recipes-kernel/linux/linux-yocto_6.10.bb b/meta/recipes-kernel/linux/linux-yocto_6.10.bb index c022d86c8c..ee0227380c 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.10.bb @@ -42,7 +42,8 @@ KBRANCH:class-devupstream = "v6.10/base" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.10;destsuffix=${KMETA};protocol=https \ - file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch" + file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch \ + file://${THISDIR}/files/rtla.cfg" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LINUX_VERSION ?= "6.10.3" diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb b/meta/recipes-kernel/linux/linux-yocto_6.6.bb index 83b7066b90..5a574add85 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.6.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb @@ -41,7 +41,8 @@ PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v6.6/base" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ - git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https" + git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https \ + file://${THISDIR}/files/rtla.cfg" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LINUX_VERSION ?= "6.6.45"