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 A0E71A00C5; Sun, 26 Apr 2020 17:28:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 263111BF3C; Sun, 26 Apr 2020 17:28:34 +0200 (CEST) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by dpdk.org (Postfix) with ESMTP id 81D8B29D2 for ; Sun, 26 Apr 2020 17:28:33 +0200 (CEST) Received: by mail-lj1-f196.google.com with SMTP id e25so14896436ljg.5 for ; Sun, 26 Apr 2020 08:28:33 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vb7LuVat+TeanB0N3ikLD26qJh79kP0W/Zif7UFn++I=; b=VgcBH6ZfxQZMScH8jg7PU6NqtsgFkDbHQqMl5ZORoAPg1dvVoZINkWimv4N8PcQIkB di7Kp11qceW4tZGQ1UtvMQUmIdGulSRg0rT8DVk2MUTSHZU5JLdXS8IqF/R2g/NfbCDk GNyTRAlSHMkeMexo/k9oQWpLtFLkVLwUAcv9W/AxVzyiGQacfB9h8woiKyYmutLkgikg QJsU6S9nBR6VA3rkWrrq7ILK/WUDRQfbpH2cZ1fMnmrdAlfpvO6kh+7cYUqc0q5MkPnq POiCYojc8Ox4k38OQzmioHJpd/x5sh9fIqCw1GMMesn4+fpygxVKydlFdOA2y1xLoll3 EsBQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vb7LuVat+TeanB0N3ikLD26qJh79kP0W/Zif7UFn++I=; b=Lz5DXxk6WxT6SSgUy1CG4fpJ9t8mc6rDfDZ4A+tyWMSXG0qq7oSsDakvfyvmTlbdnG vB+iSUvbkzxKFeWjDaU3fq0D/bQ4xsUXVYjJEzZ+/8MsNgSHeMyH1bW+EX58jRS8hlb/ eOszYxmxpD/ugvGrk+eS+8uUPABOSO/p/I+8PWitpzYHWJk37HTZq81cEJY7Q1tzz7kf mmPVotqN3A9wcM88/wffCirfMLR84un7N/wbM1SXGktbuWpyQVeLs5iaHwZGk83mX2Q/ BBjoj/6KvSZdwMSYzk2rxSR3aOzsyIbe6DvYkJyOjjVUhQDBmIVd2u3LfMkb9acUpQmU lFWw== X-Gm-Message-State: AGi0PuYjWByO/prBkZitxcHrM0lYZnJumKDmzPQy8JtG60docDD3VcBJ 6g1MF5qX3KCe5+7/2Y6T27d4yQzpbCU= X-Google-Smtp-Source: APiQypIsVk125nBJ5WYa9aaMy+xUtA0Y4TKboIEmeK1iXMD/+uYzSUFGzB1Z0h1pLi1WFPHfRfywiA== X-Received: by 2002:a2e:8912:: with SMTP id d18mr11780281lji.123.1587914912702; Sun, 26 Apr 2020 08:28:32 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.googlemail.com with ESMTPSA id p13sm8211340ljg.103.2020.04.26.08.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2020 08:28:32 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Pallavi Kadam , Narcisa Ana Maria Vasile , Ranjit Menon , Dmitry Kozlyuk Date: Sun, 26 Apr 2020 18:28:15 +0300 Message-Id: <20200426152819.2496610-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200426032245.2437733-1-dmitry.kozliuk@gmail.com> References: <20200426032245.2437733-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/3] eal/windows: fix build by enabling trace compilation 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 patch fixes errors caused by using Unix-only functions in tracing EAL. It does not provide full tracing support for Windows because of missing regex implementation. It introduces new internal EAL wrappers for directory management and provides basic, but correct implementation for some EAL functions required for tracing compilation. This patch implements rte_get_tsc_hz() instead of basing upon a pending patchset, because fixing the build allows testing said patchset in the first place, and also re-implemented code is only a few lines. v2: * Change title to reflect that only tracing compilation is enabled. * Split commits adding new API and fixind build on Windows. * Move new functions to eal_filesystem.h. * Remove unneeded Fixes: line. Dmitry Kozlyuk (3): eal/windows: replace sys/queue.h with a complete one from FreeBSD eal: add internal directory management API eal/windows: fix build by enabling trace compilation config/meson.build | 2 + .../common/eal_common_trace_utils.c | 29 +- lib/librte_eal/common/eal_filesystem.h | 30 +- lib/librte_eal/common/meson.build | 5 + lib/librte_eal/freebsd/Makefile | 4 + .../include/generic/rte_byteorder.h | 4 +- lib/librte_eal/linux/Makefile | 4 + lib/librte_eal/meson.build | 4 + lib/librte_eal/unix/eal_unix_filesystem.c | 51 ++ lib/librte_eal/unix/meson.build | 6 + lib/librte_eal/windows/eal.c | 92 +++ lib/librte_eal/windows/eal_thread.c | 9 + lib/librte_eal/windows/eal_windows.h | 3 + lib/librte_eal/windows/include/rte_os.h | 33 +- lib/librte_eal/windows/include/sys/queue.h | 663 ++++++++++++++++-- 15 files changed, 847 insertions(+), 92 deletions(-) create mode 100644 lib/librte_eal/unix/eal_unix_filesystem.c create mode 100644 lib/librte_eal/unix/meson.build -- 2.25.1