Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5473194rdb; Wed, 13 Dec 2023 09:32:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk4j15fy2JCxE7jQjzkCG9r0JI7ZiYVlZjBZuc6cMAa0w3mnvYJYTrtPolvEuBh4EbmOu4 X-Received: by 2002:a05:6a20:1604:b0:18c:b464:eba3 with SMTP id l4-20020a056a20160400b0018cb464eba3mr5276956pzj.7.1702488757208; Wed, 13 Dec 2023 09:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702488757; cv=none; d=google.com; s=arc-20160816; b=MNGCmZHVOGX+atlIEzqXi9lvOv6F/WUXpWCs5boOqNko85ojpm25PJyDPD5HdFXXwr XrcudAj8tTmrkAo0nneLtNKN+WDf77OcYzyAxEI+F1jn3G03cIIK0V7CPnlN+79wnNE5 imq6KcteaAzYJ8HBZ5IS+of/EUzSIHWIwH+Rw5nYWT9k+5xX7EQva5g7ZQTNbXBmwQO+ svz8PMP7KwAqtcikO1Q//lXf+Ez52SpvXdctgwCe/KI9zeLFUIs9HG1n5mtBemIIjLnT AXgJUzoD3hjQs7UETyOFdKiWc5I4UQ/xN3Oe1QVX9mfdHcLT10nXNXSw+hD0OxgDpoS6 LgsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ngdp73dAuDm5AN/748uVz+OSMkfWpN/pQEhJ8oclM3s=; fh=qfSgUyoin9tz9B+UcEZLgJHgdwQAgjEnihyIcEWcn3s=; b=G0/KZUH/FoUFC4tQxcklbrLp7WObJxWn6lQejE8H1R2+Db3NtL/llcfUz1iYEiYBoT kyPtjJv8e/E/doYshwODKGoEfRTmSEqTKQ5n+EQVrDuBvkmAhZvkhrydVoXJQaFUq2g8 9pC0J5+uBLYpySVvIcbAUabJ7rkM4dsIGgCbUvfM1efgeZwmzbse2LRYPtZ1AtgkFyBK QDde6VZnkQpzKJna4IghOj4SBY9ICLAoJs8OACFmrDUC+SNWJxLUO2/z1cJI//8IExuC yPFLjQjjKHZ3sKVfzuwZAcot6nRqRKaJ1qC6we9WNWoy+VG9nuHEDmF43QGjDGTs+m6O xIBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TMNuGjk7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o20-20020a635d54000000b005b3b8896199si9575610pgm.591.2023.12.13.09.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:32:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TMNuGjk7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A872C807280F; Wed, 13 Dec 2023 09:31:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379451AbjLMRb0 (ORCPT + 99 others); Wed, 13 Dec 2023 12:31:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233671AbjLMRbX (ORCPT ); Wed, 13 Dec 2023 12:31:23 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C85A2F2; Wed, 13 Dec 2023 09:31:29 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3BDEtGLb015229; Wed, 13 Dec 2023 18:31:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=ngdp73d AuDm5AN/748uVz+OSMkfWpN/pQEhJ8oclM3s=; b=TMNuGjk76NS32lDMVLYG+tV iMece0whzUF0sMv6jI42DJcDe1TLPgwSzMUK1GZ+cl6w+Cox3JSDGyeGgI3Zp/gs BMBKoTFrx/VTQrc+bsa9Y7TUcAD3dzek4ynsvf3P4sJaZbVme+bimTwvRmhBfOCR SOlkKG9Fy+fKAGtTnF6d4zO9DvP4PrdqvDiYFaAksaUyFB4WDMbm7hxZe5oAZxXm vGbws2zdFEMIlhEXkvqibTSS11pgKcBHgCkC5bRn8yBDVs9eJkwIW2P6EKeSGHDu vZRPYDM4rVpAvotoiXAeiNcVBRH+YreYcLyKP/r/YiIHPDtYHb/ffCIGV7n4x6A= = Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3uvgf1snjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 18:31:27 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DA334100057; Wed, 13 Dec 2023 18:31:25 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B099026598C; Wed, 13 Dec 2023 18:31:25 +0100 (CET) Received: from localhost (10.252.26.85) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 13 Dec 2023 18:31:24 +0100 From: Fabrice Gasnier To: CC: , , Subject: [PATCH v4 0/2] tools: counter: add counter_watch_events Date: Wed, 13 Dec 2023 18:31:15 +0100 Message-ID: <20231213173117.4174511-1-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.252.26.85] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) 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-13_10,2023-12-13_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 09:31:38 -0800 (PST) Introduces a new tool that can be used for testing. Also add MAINTAINERS entry as per William's recommendations. Changelog: Changes in V4: - Specify linux-iio mailing list in MAINTAINERS - Revisit error path and handling in counter_watch_events Series split, e.g. V3: - This is a split of another series [1]. [1] https://lore.kernel.org/lkml/20230922143920.3144249-1-fabrice.gasnier@foss.st.com/ Fabrice Gasnier (2): tools/counter: add a flexible watch events tool MAINTAINERS: add myself as counter watch events tool maintainer MAINTAINERS | 6 + tools/counter/Build | 1 + tools/counter/Makefile | 12 +- tools/counter/counter_watch_events.c | 406 +++++++++++++++++++++++++++ 4 files changed, 423 insertions(+), 2 deletions(-) create mode 100644 tools/counter/counter_watch_events.c -- 2.25.1