From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C01B3A0C4D; Fri, 20 Aug 2021 18:54:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70D154067E; Fri, 20 Aug 2021 18:54:22 +0200 (CEST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mails.dpdk.org (Postfix) with ESMTP id BDBAC4003E for ; Fri, 20 Aug 2021 18:54:21 +0200 (CEST) Received: by mail-lf1-f43.google.com with SMTP id f10so7089763lfv.6 for ; Fri, 20 Aug 2021 09:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/PHWNge2V1JEPFcpoX0gONKwzMyVphNvepqH81+IXkM=; b=P1tzy0PFEcq6gc/fq2mLmEHDX6S4rKk80YpQOs+AY5aiWm+8tkocUHEUBMrg6+IngO igzaDesTPa0F/8GwXcJQiD3y6kCaWNQ9qEtE/j8ezOxSixo2yHsLAN25z9V6uNZrPg+s Te02gMDH5Pjq4nCrkpiVpYgBEZsIjBhYqDZSWKgKtIJoxVm3ymCIDheOu1ZSaHcihzmY AS/mtxcggjJKt9V9mSniUiVN0hXYFEL6hUO4WK7sxXWQFIdXA9DKhODPnLe0Y/hLoDvG pqD7NVt12H2ryp1S9l0FK7KR4GC/VDSImrShbTxRl99zjGfFrdqntE4qswx4WeJGnIdL ID5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/PHWNge2V1JEPFcpoX0gONKwzMyVphNvepqH81+IXkM=; b=OmCo2fCAjz565IR45xEDsB5XThntgIruB1YTQ7XUo71y/3TNV3NefLApNCNFZRquoA 7FZS413sxLoHssAiJaJLrT0xaqPD6zuT5X2DcXBMhfRCteXkqYOs6yf6i/LoJ+806wyg OLCq+O0E3I8rh3IuhHJF8e4UvNroJA68V3UDj/Y+LHulM93/RkkGvokA2FZMCcBGzSPl X8z04kon3J6z3JSYE+RZX9vFKIYiwELO9KWuq4euRgEYYkjaWqvwzznsVFnOSihDBBa1 9UkxB7avmZDnfC91gL+9raGkxK6Xma3bXWo6PWYRO3O7jqfYy0ih8t4LlRR98kfM50Nj 5mpw== X-Gm-Message-State: AOAM530F2WmktY58x1QFhAJzxOo2mXcjghd0FLHpH+F0HrfN5vbD43VZ NQm8UPVC7m/mqEW9DP6pOG0= X-Google-Smtp-Source: ABdhPJw2QC1Y2WOFkD5+AjcYnK3M++TfN7ArbrMCn44ljiL6+SA3Bvci99VW2RYWQJrNlqlsMdVeYQ== X-Received: by 2002:a19:8c09:: with SMTP id o9mr15237007lfd.103.1629478461308; Fri, 20 Aug 2021 09:54:21 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id j3sm269410lfe.102.2021.08.20.09.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 09:54:20 -0700 (PDT) Date: Fri, 20 Aug 2021 19:54:19 +0300 From: Dmitry Kozlyuk To: Narcisa Ana Maria Vasile Cc: dev@dpdk.org, thomas@monjalon.net, khot@microsoft.com, navasile@microsoft.com, dmitrym@microsoft.com, roretzla@microsoft.com, talshn@nvidia.com, ocardona@microsoft.com, bruce.richardson@intel.com, david.marchand@redhat.com, pallavi.kadam@intel.com Message-ID: <20210820195419.5f839bc0@sovereign> In-Reply-To: <20210820161033.GA1027@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1628017291-3756-1-git-send-email-navasile@linux.microsoft.com> <1629408694-31803-1-git-send-email-navasile@linux.microsoft.com> <1629408694-31803-10-git-send-email-navasile@linux.microsoft.com> <20210820161033.GA1027@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v14 9/9] Add unit tests for thread API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" 2021-08-20 09:10 (UTC-0700), Narcisa Ana Maria Vasile: > On Thu, Aug 19, 2021 at 02:31:34PM -0700, Narcisa Ana Maria Vasile wrote: > > From: Narcisa Vasile > > > > As a new API for threading is introduced, > > a set of unit tests have been added to test the new interface. > > > > Signed-off-by: Narcisa Vasile > > --- > > app/test/meson.build | 2 + > > app/test/test_threads.c | 419 ++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 421 insertions(+) > > create mode 100644 app/test/test_threads.c > > > > There's a failure here on Alpine Linux: > "error: implicit declaration of function 'pthread_attr_setaffinity_np'; > did you mean 'pthread_setaffinity_np'? [-Werror=implicit-function-declaration]" > > It looks like "pthread_attr_setaffinity_np" is not available on Alpine Linux. However, > other affinity functions such as "pthread_setaffinity_np" are present. Is there a guard that > I can use here to check if the pthread_*_np functions are available, similar to RTE_HAS_CPUSET for cpuset? Even if there is one, you still need to handle the Alpine case. 41b5a7a8494e ("vdpa/mlx5: replace pthread functions unavailable in musl") is an example how to solve this particular case. It's also what that rte_ctrl_thread_create() does.