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 78D8FA0C4D; Fri, 20 Aug 2021 18:10:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EB1C4013F; Fri, 20 Aug 2021 18:10:35 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id C27744003E for ; Fri, 20 Aug 2021 18:10:33 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1059) id 19A5020C33CF; Fri, 20 Aug 2021 09:10:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 19A5020C33CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1629475833; bh=R0Butu5CqRVUlE8QtBpqIZzfV9FG4gUwJ1NS0xdrycQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GqX7OUzdMShVpjGSA3T/rVCY7o0NvcaDVtCHZ1SRpAugxyWXzS71n8HnH1GZIG0Dn PVZFtcnPgCmw0f2BQlEdoMqBVwJKbRpVDWeZCqHaVeVXx3oF9ujZJfygwfK+1s8IJS pv/61c4YdthkEYkjIx+FWOh70gMaCAyyFxzSdZSM= Date: Fri, 20 Aug 2021 09:10:33 -0700 From: Narcisa Ana Maria Vasile To: dev@dpdk.org, thomas@monjalon.net, dmitry.kozliuk@gmail.com, khot@microsoft.com, navasile@microsoft.com, dmitrym@microsoft.com, roretzla@microsoft.com, talshn@nvidia.com, ocardona@microsoft.com Cc: bruce.richardson@intel.com, david.marchand@redhat.com, pallavi.kadam@intel.com Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1629408694-31803-10-git-send-email-navasile@linux.microsoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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" 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?