From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F061A04B5; Fri, 11 Sep 2020 02:22:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1007B1BEB3; Fri, 11 Sep 2020 02:22:16 +0200 (CEST) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 7CD041DB8 for ; Fri, 11 Sep 2020 02:22:15 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id u21so10501484ljl.6 for ; Thu, 10 Sep 2020 17:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IwPNRHjOcm+iG5ojkyv+4qpbOipR3TyEKtuOKjinoY0=; b=mhHVG+NYNOcwaQ1tuROyYqA+NApQMHuBhkI8wHPhlZwV9FPgyBKSFFLOHLAM90otNT 2ABNNzc7TCbkO0UTJBlRGjnskCBhSUSqdgtyjDrlrVjzqDaiZZD15RS4HXY7/3Ph585E PeNnfScDJUAJuY50khnFQWrEjyLhLhG6ipaMntMYRKX6wpHeNJjFQL8nhyi9imiGGefF f/t1oi+F0eO46Vp+KheGbSKVKKIqFVwCpZLcIYI+uR3BE30PuWOqLaOMtgIVROBbk8Rh Kv6fcUc+An6et/J1VUeFuc6xu/ZWhj4Uo9PPAcYSpGLVL6JZdJIvVrw4eYfudnu6xCAx qQVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IwPNRHjOcm+iG5ojkyv+4qpbOipR3TyEKtuOKjinoY0=; b=q+y+6JQCDNHaiBvOp7sbcI5xCuYnqDqU8XX9wvNIv7VMuDLKrOKLqM2rDpktq9xAHO G6iKOJ5sZuVdcLLfOW4Y2esgDVHOZtOpMwYsHy81/PG0Dp9pwqVw2O4AexuicENSHk3J g5n8WJ3vOZXT7zBmjrnl2M0tc6kxa34j/449q7/U0/e/40pkqlWLS62EVKFIngUh+dew MH13lTgfVeUSeFBS3nbOe7j/08SaCAKeSz+vgl8bGmC50dpmsxSZ0pGP8hL2VuIkP7PF sUZPmmnZJozDfsq5toZvprirW9LBAHCdw8YWp1kPZbvlwPzBdQUtExill1pgq6ib310L Fu5A== X-Gm-Message-State: AOAM530Wn/dFeAPpRY78OgnwkOmImjeTrVNuXBNBVjlApvv3VinLVzjd u4HooZ5tOSJ27OgC2STmGBrmHSgf8qASVA== X-Google-Smtp-Source: ABdhPJx+RWsBJ55A2pWqtqhrhAY1zpVwnIoxxDj3kmI+J627HlK3NBgoVM7lKGgAicuT37Alj3KBng== X-Received: by 2002:a2e:6f17:: with SMTP id k23mr5992868ljc.245.1599783734537; Thu, 10 Sep 2020 17:22:14 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id b16sm132765ljh.34.2020.09.10.17.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 17:22:14 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk Date: Fri, 11 Sep 2020 03:22:05 +0300 Message-Id: <20200911002207.31813-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] eal/windows: implement alarms 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patchset provides EAL alarm support for Windows. Basic interrupt thread code is added to monitor alarm events. It doesn't include callback management, because Windows alarms, unlike Unix EALs, rely on the OS for callback execution scheduling. Dmitry Kozlyuk (2): eal/windows: add interrupt thread skeleton eal/windows: implement alarm API lib/librte_eal/include/rte_eal_interrupts.h | 14 +- lib/librte_eal/rte_eal_exports.def | 3 + lib/librte_eal/windows/eal.c | 5 + lib/librte_eal/windows/eal_alarm.c | 219 ++++++++++++++++++++ lib/librte_eal/windows/eal_interrupts.c | 99 +++++++++ lib/librte_eal/windows/eal_windows.h | 12 ++ lib/librte_eal/windows/include/pthread.h | 7 + lib/librte_eal/windows/meson.build | 2 + 8 files changed, 358 insertions(+), 3 deletions(-) create mode 100644 lib/librte_eal/windows/eal_alarm.c create mode 100644 lib/librte_eal/windows/eal_interrupts.c -- 2.25.4