From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B6CF95936 for ; Tue, 24 Feb 2015 17:36:56 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 24 Feb 2015 08:36:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,639,1418112000"; d="scan'208";a="690089113" Received: from unknown (HELO Sent) ([10.217.248.233]) by orsmga002.jf.intel.com with SMTP; 24 Feb 2015 08:36:50 -0800 Received: by Sent (sSMTP sendmail emulation); Tue, 24 Feb 2015 17:33:31 +0100 From: Pawel Wodkowski To: dev@dpdk.org, pablo.de.lara.guarch@intel.com Date: Tue, 24 Feb 2015 17:33:22 +0100 Message-Id: <1424795605-2779-1-git-send-email-pawelx.wodkowski@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424348324-29932-1-git-send-email-pawelx.wodkowski@intel.com> References: <1424348324-29932-1-git-send-email-pawelx.wodkowski@intel.com> Subject: [dpdk-dev] [PATCH v6 0/3] new rte_jobstats library and example application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2015 16:36:57 -0000 Hi community, I would like to introduce library for measuring load of some arbitrary jobs and help finding optimal poll time in poll mode applications. It can be used to measure and drive every kind of job sets on any arbitrary execution unit or tasking library. In provided l2fwd-jobstats example I demonstrate how to use this library to select optimal rx burst poll time and find out idle time. Jobs are selected by using existing rte_timer library calls. This example does no limit possible schemes on which this library can be used. PATCH v6 changes: - rename library name to rte_jobstats. - clean unused includes and dependencies in library. - change/fix API documentation. - reword cover letter. PATCH v5 changes: - Fix spelling and checkpatch.pl errors. - Add maintainer claim for library and example app. PATCH v4 changes: - use proper branch for generating patch. PATCH v3 changes: - Fix spelling. PATCH v2 changes: - Remove jobs management/callback from library to not duplicate tasking library behaviour. - Cleenup/remove useless statistics. - Rework example application to use rte_timer library for jobs selection. - Introduce new app parameter '-l' for automatic thousands separating in stats. - More readable statistics format. Pawel Wodkowski (3): librte_jobstats: New library for checking core/system/app load examples: introduce new l2fwd-jobstats example MAINTAINERS: claim responsibility for rte_jobstats library and example app MAINTAINERS | 4 + config/common_bsdapp | 5 + config/common_linuxapp | 5 + doc/api/doxy-api.conf | 1 + examples/Makefile | 1 + examples/l2fwd-jobstats/Makefile | 51 ++ examples/l2fwd-jobstats/main.c | 1040 ++++++++++++++++++++++++++ lib/Makefile | 1 + lib/librte_jobstats/Makefile | 53 ++ lib/librte_jobstats/rte_jobstats.c | 273 +++++++ lib/librte_jobstats/rte_jobstats.h | 322 ++++++++ lib/librte_jobstats/rte_jobstats_version.map | 19 + mk/rte.app.mk | 4 + 13 files changed, 1779 insertions(+) create mode 100644 examples/l2fwd-jobstats/Makefile create mode 100644 examples/l2fwd-jobstats/main.c create mode 100644 lib/librte_jobstats/Makefile create mode 100644 lib/librte_jobstats/rte_jobstats.c create mode 100644 lib/librte_jobstats/rte_jobstats.h create mode 100644 lib/librte_jobstats/rte_jobstats_version.map -- 1.9.1