From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 8DB12377C for ; Wed, 18 May 2016 16:50:43 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id r12so38633179wme.0 for ; Wed, 18 May 2016 07:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=t9oOOP94C4ij/bm5VJjT6whWHWAO21ToOUJRhWQ+ic0=; b=jFHQ4CVWqCwgU+jq9CDv5WaNWtWgxm2vrvY0no7EaornML91lZFfg9vj7AByaN2E8D gpIpJYd9Fk9KXtyEJdLFJIQJLVuuUGaiyWKM92t+UXKvTHx3E801dDIkCwLaqQNd3GJN /Z7horD4aTnyFwcbsRJl2uLFQjkICzlBf1wGKmMYspwoCum9stOzQO7IwkbZZ0sT7KBv CQGYvWk2aa+CSkX3ygFU0ScH9nrqGAAj9Faz9qZH6HC76sFGXbo34715PInVHedQwVPt 7lz2qY8w/nbm1axWBANY2njigzqHL2hsCZtV1w+bWZ6aZuWoiCD/KEj6syBnQO74xOER 7xwA== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=t9oOOP94C4ij/bm5VJjT6whWHWAO21ToOUJRhWQ+ic0=; b=chj+D71Xm3B5iKPm7xnqK57Y2ch35MKLCVM0/u/a83b6VvE1LGmcXokv0Z8oV9zzEh IbbUlokaf4L/5MQxN9xKzwGngD7TjT4Bdmt7vWeTrEATXlQwQ0OdTj6Sk2NTuAz7HpZb o9qUuTYyQUrgP7YEGqtjag3QKmkbu8xumlwMQxD8lJPQB5ddTSW4Md2mh6dPtPDs/Kmi hM4XQuhFZgGjlK8mjjgdVXeqz9XgqEkKLWUC29t49qNAkRdC7mIaCLhXnt9mbe6OPZ0p fJZP3b0MG2zCgaXV5Qw/TyszRiXB6w7/ZN5aNYPifkquSzUsvMMGJ/IchaaWcKi4NbML K0vA== X-Gm-Message-State: AOPr4FXNVduKRvD2Jxsx47mcAeBlh+cjodFcD/PQSmBp14zQRG9g6l+R4R473DBo9lbRW9sV X-Received: by 10.28.139.75 with SMTP id n72mr8130646wmd.28.1463583042662; Wed, 18 May 2016 07:50:42 -0700 (PDT) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id e8sm9071179wjm.23.2016.05.18.07.50.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2016 07:50:41 -0700 (PDT) From: Thomas Monjalon To: Maxime Leroy Cc: dev@dpdk.org, David Marchand , Olivier Matz Date: Wed, 18 May 2016 16:50:09 +0200 Message-ID: <2273011.xczdiDXzv8@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1462810416-6183-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] eal: fix log level/type retrieving on a standard pthread X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2016 14:50:43 -0000 > > The functions rte_log_cur_msg_loglevel() and rte_log_cur_msg_logtype() > > return the current log level/type for the message being processed. They > > are used when implementing a user-defined logging stream. > > > > The current log levels and types were stored in a table indexed by the > > lcore_id, only returning a valid value for dataplane threads. Setting > > and getting these values in a non dataplane thread was ignored, using > > the global value instead. > > > > To fix this issue, a per-thread variable could be used (with > > RTE_DEFINE_PER_LCORE), allowing any pthread to set and retrieve its > > current log level or type. > > > > Signed-off-by: Maxime Leroy > > Signed-off-by: Olivier Matz > > Acked-by: David Marchand Applied, thanks