Received: from EUR02-HE1-obe.outbound.protection.outlook.com (EUR02-HE1-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web11.3774.1585049599895105746 for ; Tue, 24 Mar 2020 04:33:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@criticaltechworks.onmicrosoft.com header.s=selector2-criticaltechworks-onmicrosoft-com header.b=KOX9CMYk; spf=permerror, err=parse error for token &{10 18 spf.kmitd.com}: permanent DNS error (domain: criticaltechworks.com, ip: , mailfrom: luis.martins@criticaltechworks.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xe9xCVt4qifQhBIKcan8Vi7NPzW8+SAisOXCzicSybxNrHUmEWl5+qIzJmX8fFHGjATRkyG8gzxVJ4LkHkxv/cZ2FaI4nB6b4ahfiXnNlvEZh/vY5CsE7F9uwmMGpgmNvjH6SD8jS+27SOJEOi+gno3NmtjbDZo/xCdLDtpYEwHX1Nc/z0Ahv8CTrE5OCLB8JRbrVzAjaDCwykwl0nUe1JLI/nT42mpCFXem76iHRasUwJbhvowq0EauTmoKK278OMwdwQkP0rZxqQMm1kVjC9ZdELiLFa/bM5FXgP2twjBSmH7LAKjmn3+SpwD3Ci8bkJRolIwNZCOdHs+xS4oUNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dWlJzQ9aqRZnsS4UuDrVJB0ymODWRBG0KqJdSv/sX/c=; b=HG6XH1lIKPq8DWhGwjaoL7d6FOpUsh62u/7Rr33NCQFhXK146uZYiP5XVKzZ5g+pfoZcHz5jY8CBajMvXKQ4KSr3vZ8i9K+/DCSwqlzmw5tOxHspWek4UaDlecVbss7Ww7BI9Uhcbj9zEWfb1cbxoNEOekAIpn7G6ehwstIIo7DM/kg/AasjZQF7lYMKzmyEa0VEDUQfFjGFKwfft6/HMdyAGJk8YupMW5+CKh8OrW1VMMbITMNfGBGZ1aUw0oZ7LzLAVc1AyNOaeiUiehVTTxuPOL8hVKFj5AonFUFMaYMRwvWHFI1fc551AdHVJ5FBQ69mbDUmT2QESxIeD5hlIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=criticaltechworks.com; dmarc=pass action=none header.from=criticaltechworks.com; dkim=pass header.d=criticaltechworks.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticaltechworks.onmicrosoft.com; s=selector2-criticaltechworks-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dWlJzQ9aqRZnsS4UuDrVJB0ymODWRBG0KqJdSv/sX/c=; b=KOX9CMYknZOz0ObWWjyD4jRhAbCPUWVDUemd3vo4v6pwxBVmxPF6l6ZYQrOl5fjxKqgkI3jNq9QoMgZRt+YLuEWv5g+j82ho6O6FTK5gVLd7gL8H2THDEXG1R6Lzm8mwXg25gr+5YpPMip5asaszKXGuFgBKrLCcPUngQetpY0E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Luis.Martins@criticaltechworks.com; Received: from DB7P193MB0282.EURP193.PROD.OUTLOOK.COM (52.134.109.21) by DB7P193MB0284.EURP193.PROD.OUTLOOK.COM (52.134.111.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.15; Tue, 24 Mar 2020 11:33:17 +0000 Received: from DB7P193MB0282.EURP193.PROD.OUTLOOK.COM ([fe80::a0cd:4b77:8f8f:c6e1]) by DB7P193MB0282.EURP193.PROD.OUTLOOK.COM ([fe80::a0cd:4b77:8f8f:c6e1%3]) with mapi id 15.20.2835.021; Tue, 24 Mar 2020 11:33:17 +0000 From: "Luis Martins" To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/5] buildstats*.sh: add recipe parameter to scripts Date: Tue, 24 Mar 2020 11:33:12 +0000 Message-ID: <20200324113313.39528-5-luis.martins@criticaltechworks.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200324113313.39528-1-luis.martins@criticaltechworks.com> References: <20200324113313.39528-1-luis.martins@criticaltechworks.com> X-ClientProxiedBy: LNXP265CA0011.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::23) To DB7P193MB0282.EURP193.PROD.OUTLOOK.COM (2603:10a6:5:1b::21) Return-Path: luis.martins@criticaltechworks.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (213.205.68.220) by LNXP265CA0011.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18 via Frontend Transport; Tue, 24 Mar 2020 11:33:17 +0000 X-Mailer: git-send-email 2.25.2 X-Originating-IP: [213.205.68.220] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 20dd4bf7-a57e-4a66-7a8b-08d7cfe725a8 X-MS-TrafficTypeDiagnostic: DB7P193MB0284: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:257; X-Forefront-PRVS: 03524FBD26 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(136003)(39850400004)(396003)(346002)(376002)(5660300002)(6506007)(36756003)(478600001)(44832011)(26005)(52116002)(6512007)(16526019)(2906002)(186003)(6666004)(6486002)(1076003)(81166006)(81156014)(956004)(8936002)(8676002)(66476007)(69590400007)(6916009)(66946007)(2616005)(66556008)(86362001)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7P193MB0284;H:DB7P193MB0282.EURP193.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: criticaltechworks.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 768FccgI8W3Qaz/K4Qz5a4BvI0rrcSceaeSfmPV4FEoqF4il84rND2+1C6uEyGiwXI/JMFQEt1XSpNGk4OWV1eOpkeaAH7kPV/QYz0bA8H0rkL3gvtjwwdDUEgteKH/FyCaKEyz2UK28Ncw2Ya6332bxLOIpLjWBwpxH04irBmls8Pe6fvU0ZCVw763F536OsY4LJMtkjpPnSbYPln617vQA0Mf/mganthSFW41foWpv7R9gY66bdTGec5ked7VraZYtGM5QCPeLhWm5kNXoCTl7pMgbwtmjn9LZ90C6MqbMv0Gia8MV9Gmr0MrUVW09TeZoHVWn1QdGPwmzGPmpbaSBHSVRZW95DHnAprr3AM00gBWfpBJbsbrfxoKLlNg6TYds4rON2UGMmOFe1ow4rdCbrjd7yVKhV9g3gIdYye/Bm1pwvc4sE26c9Vce+OonAeufyKv0Sl5hW3MxA7cDTviRAAX04PVU8k64C7Cjpd08UE5ir8uNV/8CPBH35fTe X-MS-Exchange-AntiSpam-MessageData: o6AsWoAh8YoOSpRH3g1ee+GtYeAog8NdBGmxrXvyMD5O/IHQpRy30WsZkPor3g+ozQWSwMgNleZUp2yNV4r3aNFh3A32cR5jh3ZRB7YQOrcsZfXsUXYmEfcgM2DovsmlRGmExRrQdzq3DLtMGfRL4g== X-OriginatorOrg: criticaltechworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20dd4bf7-a57e-4a66-7a8b-08d7cfe725a8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2020 11:33:17.4996 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 61f30b8e-4f6b-44fe-9bc2-041e3a9f7346 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: r9jENSbvxhZgPrHuJbVLBb3iydnH0/uvDbg0fI5qLPFw9l/eDidQiWs1YVV6KC/FF0JuIvD0gIbFLkkAg9Buq35bg1AkQNPcixbOqycb9o4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7P193MB0284 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Add option to filter the stats results for a single recipe, allowing to easilly visuality the task resource consumption per recipe. This is specially useful when debugging the performance of the overall bitbake build system. Upstream-Status: Pending Signed-off-by: Luis Martins --- scripts/contrib/bb-perf/buildstats-plot.sh | 9 +++++++-- scripts/contrib/bb-perf/buildstats.sh | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/scripts/contrib/bb-perf/buildstats-plot.sh b/scripts/contrib/b= b-perf/buildstats-plot.sh index f26312f355..320c4910a1 100755 --- a/scripts/contrib/bb-perf/buildstats-plot.sh +++ b/scripts/contrib/bb-perf/buildstats-plot.sh @@ -39,6 +39,7 @@ set -o errexit =20 BS_DIR=3D"tmp/buildstats" N=3D10 +RECIPE=3D"" TASKS=3D"compile:configure:fetch:install:patch:populate_lic:populate_sysro= ot:unpack" STATS=3D"utime" ACCUMULATE=3D"" @@ -53,6 +54,7 @@ Usage: $CMD [-b buildstats_dir] [-t do_task] (default: "$BS_DIR") -n N Top N recipes to display. Ignored if -S is present (default: "$N") + -r recipe The recipe mask to be searched -t tasks The tasks to be computed (default: "$TASKS") -s stats The stats to be matched. If more that one stat, units @@ -69,7 +71,7 @@ EOM } =20 # Parse and validate arguments -while getopts "b:n:t:s:o:aSh" OPT; do +while getopts "b:n:r:t:s:o:aSh" OPT; do case $OPT in b) BS_DIR=3D"$OPTARG" @@ -77,6 +79,9 @@ while getopts "b:n:t:s:o:aSh" OPT; do n) N=3D"$OPTARG" ;; + r) + RECIPE=3D"-r $OPTARG" + ;; t) TASKS=3D"$OPTARG" ;; @@ -112,7 +117,7 @@ CD=3D$(dirname $0) =20 # Parse buildstats recipes to produce a single table OUTBUILDSTATS=3D"$PWD/buildstats.log" -$CD/buildstats.sh -b "$BS_DIR" -s "$STATS" -t "$TASKS" $ACCUMULATE -H > $O= UTBUILDSTATS +$CD/buildstats.sh -b "$BS_DIR" -s "$STATS" -t "$TASKS" $RECIPE $ACCUMULATE= -H > $OUTBUILDSTATS =20 # Get headers HEADERS=3D$(cat $OUTBUILDSTATS | sed -n -e '1s/ /-/g' -e '1s/:/ /gp') diff --git a/scripts/contrib/bb-perf/buildstats.sh b/scripts/contrib/bb-per= f/buildstats.sh index 26bfaca86b..2f017efeb8 100755 --- a/scripts/contrib/bb-perf/buildstats.sh +++ b/scripts/contrib/bb-perf/buildstats.sh @@ -36,6 +36,7 @@ Child rusage ru_majflt:Child rusage ru_inblock:Child rusa= ge ru_oublock:Child rus Child rusage ru_nivcsw" =20 BS_DIR=3D"tmp/buildstats" +RECIPE=3D"" TASKS=3D"compile:configure:fetch:install:patch:populate_lic:populate_sysro= ot:unpack" STATS=3D"$TIME" ACCUMULATE=3D"" @@ -47,6 +48,7 @@ cat <