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 8B370A050B; Fri, 8 Apr 2022 16:01:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D8864067E; Fri, 8 Apr 2022 16:01:49 +0200 (CEST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by mails.dpdk.org (Postfix) with ESMTP id 61BEE4003F for ; Fri, 8 Apr 2022 16:01:48 +0200 (CEST) Received: by mail-lf1-f53.google.com with SMTP id p15so15240805lfk.8 for ; Fri, 08 Apr 2022 07:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wUzVabBh++AfXIFzGKrVxoTIUIYCSJk2x151pN5lFjg=; b=fbf7OacC9wAmfhBvJbyg1OAw2RlGE6UqRYh95ZbZx2PQMneECpCRK0wjl+MqF5Odlt 75gGxHwKXjZAB6anW5sz7wJHdlREeAWdkwRZhYu2WApsoreivHf2UFuY0u/Gcs3A5qRR 2s5yaRgoYKENy5VEF45Dk+YiDYjVFeS8rwv7+2qWrqWY7mcgAML9R780iqPEdBGVjsXM uonHhEcNBWmZyWRJQ1jKWYhlmkYD32UV/uA+fXPbKBQfmWiEOz8EePUpepP/o61VGN7T 3Ugyx9OZh/8nrS2slR1ewfLSDTIDGh3Q109p/hPB8h4eF4/G+3Ax7GuVNmUOquieQLFr k8Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wUzVabBh++AfXIFzGKrVxoTIUIYCSJk2x151pN5lFjg=; b=PrnjnSl1jmZjUOYnHFxDVoC3cwl+zUi9SkCcB4I3wnRD9E5FaKk+fVt9E9rUzA5Obg CK4iIZMRd9F1/FVbY3KnU8wlyorsbnxL5qHmtI0Oc0B4t1Igi5q5lLvxyjl0mCuqMXy9 apJjad8Sax7jMMc//RBiiRGqoXfomjV/BsJQ1uDlu8ieRDIS9pkZhrXF+EsCnrdXZRuZ GnESig3GZObzDcUGYUn8MMCdT/GaJoklPyAcLL36Tiso6CDfUtkt4xsUok0TFBm+UMuM yTa5LbmG92WVXzqji21wdirvbaqnTmU43FAF7axQvVaEVmuiymOlOgNtvvGCYtclawMr LG6w== X-Gm-Message-State: AOAM533B8lBZQF+U6gOtJlliH0pTcLY+79l90ZVFHC7dx4iDXQzug7EU vDwApgxCzHyKTeKavXCXdXw= X-Google-Smtp-Source: ABdhPJztGRuyVAr7OOu5SCKBpYEwpbT9RE/UWWZLqi/MX0kiGFdr1nqSm4xo0zWCkACwLZXPtYP8HA== X-Received: by 2002:ac2:4569:0:b0:44a:de90:e495 with SMTP id k9-20020ac24569000000b0044ade90e495mr12874921lfm.352.1649426507049; Fri, 08 Apr 2022 07:01:47 -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 k18-20020a192d12000000b0044a5ddcf5fcsm2468067lfj.226.2022.04.08.07.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 07:01:46 -0700 (PDT) Date: Fri, 8 Apr 2022 17:01:45 +0300 From: Dmitry Kozlyuk To: Tyler Retzlaff Cc: dev@dpdk.org, thomas@monjalon.net, anatoly.burakov@intel.com, Narcisa Vasile Subject: Re: [PATCH 3/3] test/threads: add unit test for thread API Message-ID: <20220408170145.3b1c1025@sovereign> In-Reply-To: <1648819793-18948-4-git-send-email-roretzla@linux.microsoft.com> References: <1648819793-18948-1-git-send-email-roretzla@linux.microsoft.com> <1648819793-18948-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 2022-04-01 06:29 (UTC-0700), Tyler Retzlaff: [...] > +static int > +test_thread_affinity(void) > +{ > + pthread_t id; > + rte_thread_t thread_id; > + > + RTE_TEST_ASSERT(pthread_create(&id, NULL, thread_main, NULL) == 0, > + "Failed to create thread"); > + thread_id.opaque_id = id; The need for this hack means that the new API is unusable in practice. I think functions to get the current thread ID and to compare IDs must be the part of this series to accept this unit test patch.