From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D8E24436F8; Fri, 15 Dec 2023 07:44:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C91B440649; Fri, 15 Dec 2023 07:44:13 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9709A402A6 for ; Fri, 15 Dec 2023 07:44:12 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BF5EV89020537; Thu, 14 Dec 2023 22:44:11 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= pfpt0220; bh=7Lcitab3+/HYUXWSLk7ewruKaNhLMOnKMWDWHMGb6Gk=; b=guf 87LqNE6LBU7khr8+Aam8Nhre0UYmRM995AlNuI3sgPzS0S9WNaotkRrjPBMPBqSv j6UyLaozYp2JPPizTJ7xPsFwUVcc1JlLiVHEQ8LcIJKRz6iqTjyx/NuPknooZ3cK PBa6/YPZ9zNuJ7MXNreEL1XU+tjV8/A44xcJk8A4JfBWsgrohDAT2w+PlldBF5Mx hE7JC6aGlGsGvVZtxGJPhYJpZIE95AlAkXVN09jMreH9kQHX7dVsWeS49O/xOP4X vm6xV7fJI9bKIV9V+eLUUQWW42+kSe5qMRjw5U1iojnFDdKfXhq7mQE2KVE+zoSL 0fRnpmN8Do+IABLwttQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3v06m0t92q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 22:44:11 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 14 Dec 2023 22:44:09 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 14 Dec 2023 22:44:09 -0800 Received: from localhost.localdomain (unknown [10.28.36.185]) by maili.marvell.com (Postfix) with ESMTP id D87E33F706F; Thu, 14 Dec 2023 22:44:07 -0800 (PST) From: Ankur Dwivedi To: CC: , , Ankur Dwivedi Subject: [PATCH v6 0/2] devtools: add tracepoint check in checkpatch Date: Fri, 15 Dec 2023 12:13:53 +0530 Message-ID: <20231215064355.1429709-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230307120514.2774917-1-adwivedi@marvell.com> References: <20230307120514.2774917-1-adwivedi@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: af-enFhXBqTmVdVafPIiACjpjAhmnS3f X-Proofpoint-ORIG-GUID: af-enFhXBqTmVdVafPIiACjpjAhmnS3f X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch series adds a validation in checkpatch tool to check if tracepoint is present in any new function added in ethdev, eventdev cryptodev and mempool library. v6: - The build_map_changes function is moved from check-symbol-change.sh to a new symbol-map-util.sh file. This function can be used in other scripts by including symbol-map-util.sh file. v5: - Copied the build_map_changes function from check-symbol-change.sh to check-tracepoint.sh. - Added eventdev, cryptodev and mempool in libdir in check-tracepoint.sh. v4: - Rebased on the recent next-net branch. - Refined logic to find function definition. - Updated year in the license in devtools/check-tracepoint.sh. - Removed cryptodev, added ethdev in libdir in devtools/check-tracepoint.sh. v3: - Split the v2 patch into 2 patches. - The file common-func.sh is renamed to build-symbol-map.sh. - Removed check-tracepoint.py file. - Code improvements in check-tracepoint.sh. v2: - Add check for parent directory. Ankur Dwivedi (2): devtools: move build map changes function devtools: add tracepoint check in checkpatch devtools/check-symbol-change.sh | 76 +--------------- devtools/check-tracepoint.sh | 148 ++++++++++++++++++++++++++++++++ devtools/checkpatches.sh | 9 ++ devtools/symbol-map-util.sh | 78 +++++++++++++++++ devtools/trace-skiplist.txt | 0 5 files changed, 237 insertions(+), 74 deletions(-) create mode 100755 devtools/check-tracepoint.sh create mode 100644 devtools/symbol-map-util.sh create mode 100644 devtools/trace-skiplist.txt -- 2.25.1