From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 6DD0B1B249 for ; Mon, 30 Oct 2017 16:38:29 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id m72so10956786wmc.0 for ; Mon, 30 Oct 2017 08:38:29 -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; bh=gIc95Xf3j2to7CApZOQKZEPcdmMhShBsuf/uGcJDZmc=; b=CBOyLQSQJTgXnB75Dqc6H4eRjLU/lDMmONG6ylHwg/weIKTH+A6YHuxiYnQaHgMobP QPyI7s+sl2u/1nQV8zCgXEslYL62Xps1fT7zAHIMVOLOQz0gXprzqcHxKyc7aumWTpfN LHHodi9+9hRvv3KvX11ZRWWJbY8bvRjj7OO+HSx69I4ib/70oufMhPaDawhtwx2ge8xA cn5ktCuNLWOLnnIb5jz5biKZx1oC6XPJlZAwHBbU3raGpqXecF5n8BKJ7V6nos92VWDZ +OG0c44RHWdNx/MCKtA/MpJrQk7c4n7Zx325gJIOrEi7cMhT1sSrxhxeKK3mRQ9jigEa M9WA== 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; bh=gIc95Xf3j2to7CApZOQKZEPcdmMhShBsuf/uGcJDZmc=; b=LbcBqXbgIUiE04BMz8Uw/ZPX0akPJvoEcue+t0XcA8rG17QatoRJb/Rcx4yOCSngFX vCPgwUZw4YV7bcSMkUjtiEn6FnxvNuxR5GOykzVoYxtChH3pDy7mRBv7+fLmL3OTtaOz EzovXAJRMLCu3S5WrHAyg3Bz0hPX+1tp5cwq8LgvR8jhbPE8326zjmsqhDS5YyswkWsE +TVnDDR+iNZNI1ya2/pfuD1L8HO+MBNF7Q4TZewnvDgU56rGV8febmfXZEe5Vst9jGxE wqAz4E0y2hO1wMA1ZizsSIMGPGnYbDi/iIuMoAQTjVKM8GL+tmIzbhxnecnDFa9LbI16 HN0A== X-Gm-Message-State: AMCzsaXyceNequ2/iKDlKxM78VfzjeifYKnM31MA6UEiecKtMgMCoiMP edsQykacFuTCiMt7sXncK84= X-Google-Smtp-Source: ABhQp+TqbAxWCzt8Mmf2exBdzXyvsX630n9jnmceYy6NYUVOdZGr6h5AD7zbvlFBtp4sFc5SqcI3Qg== X-Received: by 10.28.74.193 with SMTP id n62mr4506492wmi.61.1509377909078; Mon, 30 Oct 2017 08:38:29 -0700 (PDT) Received: from localhost ([2a00:23c5:bef3:400:4a51:b7ff:fe0b:4749]) by smtp.gmail.com with ESMTPSA id p128sm4426524wmb.1.2017.10.30.08.38.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Oct 2017 08:38:28 -0700 (PDT) From: luca.boccassi@gmail.com To: Jacek Piasecki Cc: Michal Jastrzebski , dpdk stable Date: Mon, 30 Oct 2017 15:35:09 +0000 Message-Id: <20171030153511.13322-66-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171030153511.13322-1-luca.boccassi@gmail.com> References: <20171030153511.13322-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'examples/performance-thread: check thread creation' has been queued to LTS release 16.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 15:38:29 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/01/17. So please shout if anyone has objections. Thanks. Kind regards, Luca Boccassi --- >>From c6d6f502a67367f47cd5dd9ab7fe0c10103c1747 Mon Sep 17 00:00:00 2001 From: Jacek Piasecki Date: Thu, 12 Oct 2017 13:44:44 +0200 Subject: [PATCH] examples/performance-thread: check thread creation [ upstream commit 842ee032e41e678568ffbce29172b346dc09c82b ] There was a call for thread create function without result check. Added result check and message printout after failure. Coverity issue: 143441 Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim app") Signed-off-by: Jacek Piasecki Acked-by: Michal Jastrzebski --- examples/performance-thread/pthread_shim/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/performance-thread/pthread_shim/main.c b/examples/performance-thread/pthread_shim/main.c index 850b009d3..febae39be 100644 --- a/examples/performance-thread/pthread_shim/main.c +++ b/examples/performance-thread/pthread_shim/main.c @@ -161,6 +161,7 @@ static void initial_lthread(void *args __attribute__((unused))) pthread_override_set(1); uint64_t i; + int ret; /* initialize mutex for shared counter */ print_count = 0; @@ -187,7 +188,10 @@ static void initial_lthread(void *args __attribute__((unused))) pthread_attr_setaffinity_np(&attr, sizeof(rte_cpuset_t), &cpuset); /* create the thread */ - pthread_create(&tid[i], &attr, helloworld_pthread, (void *) i); + ret = pthread_create(&tid[i], &attr, + helloworld_pthread, (void *) i); + if (ret != 0) + rte_exit(EXIT_FAILURE, "Cannot create helloworld thread\n"); } /* wait for 1s to allow threads -- 2.11.0