From patchwork Tue Apr 16 14:37:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Maguire X-Patchwork-Id: 13631967 X-Patchwork-Delegate: bpf@iogearbox.net Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 813CE3B78D; Tue, 16 Apr 2024 14:37:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278255; cv=none; b=c6HO9zYHDIaN+Eu87OeFEXemzZNwrBYhvccSdtCJq8Eotdi0+zs5pBDtXrjS9fxydKaz8V4pS3f6+MWFnPWDrCFvq6VJ9asSk3Ux2847mRiXKpjaPWWLWYU9eUV/Mu6b2WrFESUpTLc7qs0eN9ZhJN7ig/m7JWe28rVohJuOBPw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278255; c=relaxed/simple; bh=/J3FmCK0rgHy8ybrr1I6D1P3XG2Sc9Qx2HMYTGkJUpE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uZ3F0ZvQ4zKW+g1PUjdqjxXtg+sl6TwO5FH50sNE3rQ7i1Beo228R5U9OQdunhfcHUpjB4XH4H8inso9oR1brZEph7rfJKqH4NSKg/eNkJJmG0Fts6jsRypg13Gge2P4tQTcYW8EALaEjzU82YUztHaLcRqIUGrPdlpBIZfanDY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=HgLLvV9k; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="HgLLvV9k" Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43GEPMD8025111; Tue, 16 Apr 2024 14:37:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2023-11-20; bh=SXm+sgYR3oh/NqyZEk8C2yicgyKUlGU4WPY/VEMWVbE=; b=HgLLvV9k0R37n8mxODvvCvh/DOaAvBcjdQsYP+mhb5Lvlnp2BRhYuYN2YC3lMWGXyYwb ad4M/1XsDrI0LzdzREsDpmwk78uKPsKubWmXwHtA9Bd9HOzk2q504wUXBuB3YJ5Kz8Ml J5Rt24k4FKAhZBzvi056o3khBUs9v04t8VKKym1PFUb1f4zzbT/YE6tc/5s6JudN04vu alAmfCZY9AmL/yB/xqvv9KpOYkTMoE52goeJNFq4hY3ydv2q9wDLJuOWlPdUy/pk/SZ+ D8dgHaKiRxPIZuIlR7IuX2uMmS5ZuaxXFdLX4x+y3XVFFcC0IRQVOJ7xCRxlBnY7V/k6 QA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xfhxbnb62-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 14:37:26 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43GEQhau029216; Tue, 16 Apr 2024 14:37:25 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xfgg7an68-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 14:37:25 +0000 Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43GEbMeq029885; Tue, 16 Apr 2024 14:37:24 GMT Received: from bpf.uk.oracle.com (dhcp-10-175-210-77.vpn.oracle.com [10.175.210.77]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3xfgg7an1y-2; Tue, 16 Apr 2024 14:37:24 +0000 From: Alan Maguire To: acme@kernel.org Cc: dwarves@vger.kernel.org, jolsa@kernel.org, williams@redhat.com, kcarcia@redhat.com, bpf@vger.kernel.org, kuifeng@fb.com, linux@weissschuh.net, Alan Maguire Subject: [PATCH dwarves 1/3] pahole: allow --btf_features to not participate in "all" Date: Tue, 16 Apr 2024 15:37:16 +0100 Message-Id: <20240416143718.2857981-2-alan.maguire@oracle.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240416143718.2857981-1-alan.maguire@oracle.com> References: <20240416143718.2857981-1-alan.maguire@oracle.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-16_10,2024-04-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404160089 X-Proofpoint-ORIG-GUID: j3KX_LqGoGmcjXYHvHlEiernDMu6SJIW X-Proofpoint-GUID: j3KX_LqGoGmcjXYHvHlEiernDMu6SJIW Specifying --btf_features=all enables all supported BTF features. However there are some features that are non-standard, so we should support a way to use them in --btf_features but not participate in the set of features enabled by "--btf_features=all". As part of this, also support all used in a list of --btf_features, i.e. --btf_features=all,nonstandard_feature Signed-off-by: Alan Maguire --- man-pages/pahole.1 | 2 +- pahole.c | 36 +++++++++++++++++++++++------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/man-pages/pahole.1 b/man-pages/pahole.1 index 2be165d..2c08e97 100644 --- a/man-pages/pahole.1 +++ b/man-pages/pahole.1 @@ -290,7 +290,7 @@ Allow using all the BTF features supported by pahole. .TP .B \-\-btf_features=FEATURE_LIST -Encode BTF using the specified feature list, or specify 'all' for all features supported. This option can be used as an alternative to unsing multiple BTF-related options. Supported features are +Encode BTF using the specified feature list, or specify 'all' for all standard features supported. This option can be used as an alternative to unsing multiple BTF-related options. Supported standard features are .nf encode_force Ignore invalid symbols when encoding BTF; for example diff --git a/pahole.c b/pahole.c index 77772bb..890ef81 100644 --- a/pahole.c +++ b/pahole.c @@ -1266,23 +1266,26 @@ ARGP_PROGRAM_VERSION_HOOK_DEF = dwarves_print_version; * BTF encoding apply; we encode type/decl tags, do not encode * floats, etc. This ensures backwards compatibility. */ -#define BTF_FEATURE(name, alias, default_value) \ - { #name, #alias, &conf_load.alias, default_value } +#define BTF_FEATURE(name, alias, default_value, enable_for_all) \ + { #name, #alias, &conf_load.alias, default_value, enable_for_all } struct btf_feature { const char *name; const char *option_alias; bool *conf_value; bool default_value; + bool enable_for_all; /* some nonstandard features may not + * be enabled for --btf_features=all + */ } btf_features[] = { - BTF_FEATURE(encode_force, btf_encode_force, false), - BTF_FEATURE(var, skip_encoding_btf_vars, true), - BTF_FEATURE(float, btf_gen_floats, false), - BTF_FEATURE(decl_tag, skip_encoding_btf_decl_tag, true), - BTF_FEATURE(type_tag, skip_encoding_btf_type_tag, true), - BTF_FEATURE(enum64, skip_encoding_btf_enum64, true), - BTF_FEATURE(optimized_func, btf_gen_optimized, false), - BTF_FEATURE(consistent_func, skip_encoding_btf_inconsistent_proto, false), + BTF_FEATURE(encode_force, btf_encode_force, false, true), + BTF_FEATURE(var, skip_encoding_btf_vars, true, true), + BTF_FEATURE(float, btf_gen_floats, false, true), + BTF_FEATURE(decl_tag, skip_encoding_btf_decl_tag, true, true), + BTF_FEATURE(type_tag, skip_encoding_btf_type_tag, true, true), + BTF_FEATURE(enum64, skip_encoding_btf_enum64, true, true), + BTF_FEATURE(optimized_func, btf_gen_optimized, false, true), + BTF_FEATURE(consistent_func, skip_encoding_btf_inconsistent_proto, false, true), }; #define BTF_MAX_FEATURE_STR 1024 @@ -1350,8 +1353,10 @@ static void parse_btf_features(const char *features, bool strict) if (strcmp(features, "all") == 0) { int i; - for (i = 0; i < ARRAY_SIZE(btf_features); i++) - enable_btf_feature(&btf_features[i]); + for (i = 0; i < ARRAY_SIZE(btf_features); i++) { + if (btf_features[i].enable_for_all) + enable_btf_feature(&btf_features[i]); + } return; } @@ -1361,7 +1366,12 @@ static void parse_btf_features(const char *features, bool strict) struct btf_feature *feature = find_btf_feature(feature_name); if (!feature) { - if (strict) { + /* --btf_features=all,nonstandard_feature should be + * allowed. + */ + if (strcmp(feature_name, "all") == 0) { + parse_btf_features(feature_name, strict); + } else if (strict) { fprintf(stderr, "Feature '%s' in '%s' is not supported. Supported BTF features are:\n", feature_name, features); show_supported_btf_features(stderr); From patchwork Tue Apr 16 14:37:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Maguire X-Patchwork-Id: 13631968 X-Patchwork-Delegate: bpf@iogearbox.net Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F2D112D768; Tue, 16 Apr 2024 14:37:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278257; cv=none; b=Av31qAkPjofPhbZv1uIiIYKR81Od8zcr1lsmFw7rNRGfkTAjlrUtSx/elKyJ6seet2Va4gs9jbkJfk1zXz+yQC+i04ynqzmrLPfuE/Sg92XVFf92K6df4m3RVQ3Re+WdDad9up6rBM122pE2eAlH2TuUcJHu5wfkklwp/q3StEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278257; c=relaxed/simple; bh=nLFf9KT/hQszCfxuTBbAMFRiUzdemuhxoIOcYnmgHSU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d4+DLt4tplZCUfI43AaH2ChF9C/rJnbk2PlN1lIZ+Frb71MDjK+HR4YsPNcxN02UpxBpDulDKuLiJrquZCiGjAamSi7qFCSYMZs5xxH4kAqGPB6r1fV0TJKveRjQ0FwdBDZsiRF4FEVs/9Y5cUeIMjikhAniPEcTSHIsMJ74lgs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=CLOVs4qC; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="CLOVs4qC" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43GEOffq001638; Tue, 16 Apr 2024 14:37:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2023-11-20; bh=mnZ3CFAeuKSJew2hYMiBvieITYlxHl5qetrTrTnw7ak=; b=CLOVs4qCEs+ocrSSyxWw7UkW7wFgGI9eIkJ1mhEzlaFGExHKVh/VKlc+FxikC21jdHtx dGDp94AwxLQCQ+04T0MeKkEb3L3lqI4QhwqTEam2s0sfgtDr3V/jkZeVBuMwXnQvOo9s upLyuU13fPfVXUXpZSQCqAPWPepzVdo4whc6U+qJfhrm6Omh6SmVk9WF19GEG4/pt6of hA2Pl8vw0DkItM/2FBWXq2L6H83KXqDzIckoCfo5/ieWSXlmQ+RneMuYu+Q0FHccPILF 867F4YOJRmjvpdozjxQfWCU1ay2kGQEVsS9LfVs7GFS6Ii4IsVbABwbD1rJcg52SoNdD iA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xfjkv5ce9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 14:37:29 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43GDp5wU029289; Tue, 16 Apr 2024 14:37:28 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xfgg7an7y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 14:37:28 +0000 Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43GEbMes029885; Tue, 16 Apr 2024 14:37:27 GMT Received: from bpf.uk.oracle.com (dhcp-10-175-210-77.vpn.oracle.com [10.175.210.77]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3xfgg7an1y-3; Tue, 16 Apr 2024 14:37:27 +0000 From: Alan Maguire To: acme@kernel.org Cc: dwarves@vger.kernel.org, jolsa@kernel.org, williams@redhat.com, kcarcia@redhat.com, bpf@vger.kernel.org, kuifeng@fb.com, linux@weissschuh.net, Alan Maguire Subject: [PATCH dwarves 2/3] pahole: add reproducible_build to --btf_features Date: Tue, 16 Apr 2024 15:37:17 +0100 Message-Id: <20240416143718.2857981-3-alan.maguire@oracle.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240416143718.2857981-1-alan.maguire@oracle.com> References: <20240416143718.2857981-1-alan.maguire@oracle.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-16_10,2024-04-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404160089 X-Proofpoint-ORIG-GUID: s8jkmTnSUjlSmy9uajEBsAtS15Uz2sYF X-Proofpoint-GUID: s8jkmTnSUjlSmy9uajEBsAtS15Uz2sYF ...as a non-standard feature, so it will not be enabled for "--btf_features=all" Signed-off-by: Alan Maguire --- man-pages/pahole.1 | 8 ++++++++ pahole.c | 1 + 2 files changed, 9 insertions(+) diff --git a/man-pages/pahole.1 b/man-pages/pahole.1 index 2c08e97..64de343 100644 --- a/man-pages/pahole.1 +++ b/man-pages/pahole.1 @@ -310,6 +310,14 @@ Encode BTF using the specified feature list, or specify 'all' for all standard f in different CUs. .fi +Supported non-standard features (not enabled for 'all') + +.nf + reproducible_build Ensure generated BTF is consistent every time; + without this parallel BTF encoding can result in + inconsistent BTF ids. +.fi + So for example, specifying \-\-btf_encode=var,enum64 will result in a BTF encoding that (as well as encoding basic BTF information) will contain variables and enum64 values. .TP diff --git a/pahole.c b/pahole.c index 890ef81..38cc636 100644 --- a/pahole.c +++ b/pahole.c @@ -1286,6 +1286,7 @@ struct btf_feature { BTF_FEATURE(enum64, skip_encoding_btf_enum64, true, true), BTF_FEATURE(optimized_func, btf_gen_optimized, false, true), BTF_FEATURE(consistent_func, skip_encoding_btf_inconsistent_proto, false, true), + BTF_FEATURE(reproducible_build, reproducible_build, false, false), }; #define BTF_MAX_FEATURE_STR 1024 From patchwork Tue Apr 16 14:37:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Maguire X-Patchwork-Id: 13631970 X-Patchwork-Delegate: bpf@iogearbox.net Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74F5F39FCE; Tue, 16 Apr 2024 14:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278298; cv=none; b=VMmYhHtPe20UGwdU1GCa11tu1UacK80yfa9rpOOf0QLOlDUdK0v2XpwosX9SIMlOF1dEp61PS8o2rlZhREdEpPQHf3MhMjH6d2YFVpN8CmEb7dL5CpdGoWpM9Wl/fnyHevfztxcmtfgq21IxKYSjuj4wPs/SVrvsT7iMapqGk7o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278298; c=relaxed/simple; bh=qSn2RUnF3XP/q/N0ytMEYtwpqinLYB/3XGMpEAhpfuc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WNdvJ9g8ndk4vWZ7jxZyUqJ/aGWBrvx0YuTRNFhQlMZugP1cIsas0itfQbVy7DlwMXyDZVIksfKbJkgB7IHa3/xJe+og6LF0gHDvMxrmJWd5gIa9JOcMlE7ah4wSd9g+FFr7FbP2y+wgcblaow1ax0CZwOnGkpX/mjgGLH4W3eM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=nrZYupA0; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="nrZYupA0" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43GEOf5Y001623; Tue, 16 Apr 2024 14:37:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2023-11-20; bh=q3B6UDm3ZSHnyu2nqXZHOOzntM11SSqUKG4D+A4uES8=; b=nrZYupA0nhE7U1ce+sytwvj+IMfhmQoOIM9p/L2RFwPeFbQrUPHP3urdLegRtruzLA/y Xhga+GOt9GYxjiiLf/+eY7yrIfFi/PNUjsz7CLWs7ms/nPTiC8/lJ6QwfAMBjA6KoYSv eSO6oqUD9aDvwijzsV+U5scaYTTFAdDiShmG+Rs2oQDHqrcFc8+gRXvUy8eKi00OYXBL pYLU38IMK7Lc/amt7tXcpAcB9RckcB/6jnTV59+9nKBXGsfQuzUjZxa7Kn/hUGr6EIsp vqrg6+jpSMb3W+mqtj4tbwpysd4fhsLLLGEHgNCp+5LqkcW5Jyl+1BfiDqPbFmRvYz6o zw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xfjkv5cej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 14:37:32 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43GDoKCJ029278; Tue, 16 Apr 2024 14:37:31 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xfgg7ana4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 14:37:31 +0000 Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43GEbMeu029885; Tue, 16 Apr 2024 14:37:30 GMT Received: from bpf.uk.oracle.com (dhcp-10-175-210-77.vpn.oracle.com [10.175.210.77]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3xfgg7an1y-4; Tue, 16 Apr 2024 14:37:30 +0000 From: Alan Maguire To: acme@kernel.org Cc: dwarves@vger.kernel.org, jolsa@kernel.org, williams@redhat.com, kcarcia@redhat.com, bpf@vger.kernel.org, kuifeng@fb.com, linux@weissschuh.net, Alan Maguire Subject: [PATCH dwarves 3/3] tests/reproducible_build: use --btf_features=all,reproducible_build Date: Tue, 16 Apr 2024 15:37:18 +0100 Message-Id: <20240416143718.2857981-4-alan.maguire@oracle.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240416143718.2857981-1-alan.maguire@oracle.com> References: <20240416143718.2857981-1-alan.maguire@oracle.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-16_10,2024-04-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404160089 X-Proofpoint-ORIG-GUID: bTmVqexumY1bycKUXeISwhfEDlfkL0tp X-Proofpoint-GUID: bTmVqexumY1bycKUXeISwhfEDlfkL0tp ...as this will test enabling all standard features plus a non-standard one. Signed-off-by: Alan Maguire --- tests/reproducible_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/reproducible_build.sh b/tests/reproducible_build.sh index 8cc36fe..e2f8360 100755 --- a/tests/reproducible_build.sh +++ b/tests/reproducible_build.sh @@ -29,7 +29,7 @@ nr_proc=$(getconf _NPROCESSORS_ONLN) for threads in $(seq $nr_proc) ; do test -n "$VERBOSE" && echo $threads threads encoding - pahole -j$threads --reproducible_build --btf_features=all --btf_encode_detached=$outdir/vmlinux.btf.parallel.reproducible $vmlinux & + pahole -j$threads --btf_features=all,reproducible_build --btf_encode_detached=$outdir/vmlinux.btf.parallel.reproducible $vmlinux & pahole=$! # HACK: Wait a bit for pahole to start its threads sleep 0.3s