From patchwork Wed Mar 23 22:19:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 64282 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp297620lbc; Wed, 23 Mar 2016 15:21:07 -0700 (PDT) X-Received: by 10.55.78.11 with SMTP id c11mr6627864qkb.89.1458771667859; Wed, 23 Mar 2016 15:21:07 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f79si3991872qkh.39.2016.03.23.15.21.07; Wed, 23 Mar 2016 15:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 789F861841; Wed, 23 Mar 2016 22:21:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 372726183E; Wed, 23 Mar 2016 22:20:11 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0AA996185D; Wed, 23 Mar 2016 22:20:06 +0000 (UTC) Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by lists.linaro.org (Postfix) with ESMTPS id 60E4E61806 for ; Wed, 23 Mar 2016 22:19:38 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id u127so24884289oie.1 for ; Wed, 23 Mar 2016 15:19:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WqBNvsl67N/i34d+FxJfjSpV+yT3xwj7jGspBt3CJNM=; b=JaRAiIPqDW6cINETpugGPF3SSjdk3MvYY0hOtj8ILNqboe3/4axvQ+CoTDJLj4tfce bKcFo4tzBMG98iMXjuCH357sCRwqT65cuBLIXq/XNcrXhDT+vdVnARa3c0u/6wiigGhx wtWbEeYGww9VrpqqweXZhN3W92uDYixGs+C71TpeTQDipdimW4gF3hcJZn+k7XVAubbY GEl7ZVxuYUzOvvLE6a1lwS4uTv3zwrgSLkm23tgAYbNqlpWb/StnuN0wbz18o2oCMiQN ud8GGFL/hEI+JXaA1m0buKUtO4uJOXDrE0/kDrfIKFkbQz+HUojybtomBGGn2mDH0Cta YDpg== X-Gm-Message-State: AD7BkJLENnAwsFHUVggSwoDIO8BOqniBfuCAP3kGlrfb8ATEKyly7uwiwdSIGO1BE7b1OTGAbIM= X-Received: by 10.157.2.39 with SMTP id 36mr2621410otb.140.1458771577907; Wed, 23 Mar 2016 15:19:37 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id p203sm1330444oif.16.2016.03.23.15.19.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 15:19:37 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 17:19:29 -0500 Message-Id: <1458771569-17717-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1458771569-17717-1-git-send-email-bill.fischofer@linaro.org> References: <1458771569-17717-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 4/4] validation: thread: add numa validation funciton tests X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add basic touch tests for odp_cpu_socket_id() and odp_cpu_socket_id_cpu() Signed-off-by: Bill Fischofer --- test/validation/thread/thread.c | 14 ++++++++++++++ test/validation/thread/thread.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/test/validation/thread/thread.c b/test/validation/thread/thread.c index 5cbec83..b70bc63 100644 --- a/test/validation/thread/thread.c +++ b/test/validation/thread/thread.c @@ -20,6 +20,18 @@ void thread_test_odp_cpu_id(void) CU_PASS(); } +void thread_test_odp_cpu_socket_id(void) +{ + (void)odp_cpu_socket_id(); + CU_PASS(); +} + +void thread_test_odp_cpu_socket_id_cpu(void) +{ + (void)odp_cpu_socket_id_cpu(odp_cpu_id()); + CU_PASS(); +} + void thread_test_odp_thread_id(void) { (void)odp_thread_id(); @@ -97,6 +109,8 @@ void thread_test_odp_thrmask_control(void) odp_testinfo_t thread_suite[] = { ODP_TEST_INFO(thread_test_odp_cpu_id), + ODP_TEST_INFO(thread_test_odp_cpu_socket_id), + ODP_TEST_INFO(thread_test_odp_cpu_socket_id_cpu), ODP_TEST_INFO(thread_test_odp_thread_id), ODP_TEST_INFO(thread_test_odp_thread_count), ODP_TEST_INFO(thread_test_odp_thrmask_to_from_str), diff --git a/test/validation/thread/thread.h b/test/validation/thread/thread.h index f8ea710..8d24479 100644 --- a/test/validation/thread/thread.h +++ b/test/validation/thread/thread.h @@ -16,6 +16,8 @@ #endif #include "mask_common.h" void thread_test_odp_cpu_id(void); +void thread_test_odp_cpu_socket_id(void); +void thread_test_odp_cpu_socket_id_cpu(void); void thread_test_odp_thread_id(void); void thread_test_odp_thread_count(void); void thread_test_odp_thrmask_control(void);