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 2B3FE9139 for ; Wed, 31 May 2017 11:21:03 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2017 02:21:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,422,1491289200"; d="scan'208";a="863078205" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by FMSMGA003.fm.intel.com with ESMTP; 31 May 2017 02:21:02 -0700 From: Bruce Richardson To: Robert Sanford Cc: dev@dpdk.org, Bruce Richardson Date: Wed, 31 May 2017 10:16:18 +0100 Message-Id: <20170531091621.203189-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170428132538.15995-1-bruce.richardson@intel.com> References: <20170428132538.15995-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 0/3] timer: inform periodic timers of multiple expiries X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2017 09:21:05 -0000 For periodic timers, with the current there is no way to know if timer expiries have been missed between calls to rte_timer_manage(). This patchset adds in a new parameter to timer callbacks, to give the number of expiries since the last one. ABI compatibility with previous releases is kept, and a new unit test for that functionality is added Bruce Richardson (3): timer: inform periodic timers of multiple expiries timer: add symbol versions for ABI compatibility test/test: add test for multiple timer expiries examples/l2fwd-jobstats/main.c | 7 +- examples/l2fwd-keepalive/main.c | 8 +- examples/l3fwd-power/main.c | 5 +- examples/performance-thread/common/lthread_sched.c | 4 +- examples/performance-thread/common/lthread_sched.h | 2 +- examples/timer/main.c | 10 ++- lib/librte_timer/rte_timer.c | 88 ++++++++++++++++++++-- lib/librte_timer/rte_timer.h | 29 ++++++- lib/librte_timer/rte_timer_version.map | 9 +++ test/test/test_timer.c | 68 +++++++++++++++-- test/test/test_timer_perf.c | 4 +- test/test/test_timer_racecond.c | 3 +- 12 files changed, 203 insertions(+), 34 deletions(-) -- 2.9.4