From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 413C55A71 for ; Wed, 25 Nov 2015 15:05:00 +0100 (CET) Received: by wmec201 with SMTP id c201so71536151wme.1 for ; Wed, 25 Nov 2015 06:05:00 -0800 (PST) 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:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=BecUY0MSsPAqKGf1hgkxpWpQNbilM6V1JxVGP0VyRSw=; b=Yw5kLZQAkFwpFEHVSj0RTx+BdoUKv2sG5Fi7AClL3XIZYEUDlMIivtE+/nbbRdhs7u B+pVgaSdTie3nVSC7QzLuhHWR0KYlT5CbMTE2oDKFtUac/INPDhsRx92MIQq5RxBQb9w SKUwuKpCJ+8X98xkdxNEWupGb8x9lpQOBo+a1mSJM49IR/184KVTQxn7VUASeE98pwPp UheCPHeV4fQGgycubNlcRHwWEKicyxGwfiRVzXSNM0DfRroBfr1ae+WHl7vEQ4VmHMpo fsM+bM116MGqpKu//w6FZ/fMLQ5XdZmJmwMvPqGQKcbhYQlR90XSrg7gPLaC8AtSxUE8 KFQw== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=BecUY0MSsPAqKGf1hgkxpWpQNbilM6V1JxVGP0VyRSw=; b=AWOyQ+XBRixIymCRIxDhRX2DE6qVLLkuh1RNdg2H0TnCgcfjTOAYSHg8D7ViGbHZZZ kBLIjUqJjbLYmS0LQvi/xGbvqBrGxkI8fSiCIPwJ5l5BZx3LN8+p4/a0U//38UTnO7v+ DSHYJpqBrV8eT00bhVLVBEGrBt98mpJ8JA8kf8TDB7uWy46ZVflzwh+N+A/1Ru+4elMn j1FVwIiv5pxDvat5/CwZh+7CzhWVbfkleZIi89BSyJwskygYtXX4BORSkRtQIWywvFC2 0mZuQ0rqCJCLJBwVLpd61THzu4G4pd+qnZLru58Wmn83tT2g/Mf70dGLwERPt3o0mksb yHwg== X-Gm-Message-State: ALoCoQnwUJ3aOSee7X+ZRpurhaGmbHLy3ks3XvBPSKzwaXazBVU5v3kvR6/PA8AR3dHe5lS8eie3 X-Received: by 10.194.88.102 with SMTP id bf6mr24721590wjb.129.1448460300032; Wed, 25 Nov 2015 06:05:00 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id z17sm23444754wjq.1.2015.11.25.06.04.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Nov 2015 06:04:59 -0800 (PST) From: Thomas Monjalon To: "Roger B. Melton" Date: Wed, 25 Nov 2015 15:03:40 +0100 Message-ID: <2717285.tnY9sUhdx2@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <5655BCE7.2060206@cisco.com> References: <20151124184755.GA26521@sivlogin002.ir.intel.com> <1448450035-23991-1-git-send-email-ferruh.yigit@intel.com> <5655BCE7.2060206@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] eal: fix compile error for old glibc caused by pthread_setname_np() 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, 25 Nov 2015 14:05:00 -0000 2015-11-25 08:51, Roger B. Melton: > Have you thought about a way to set thread name when glibc < 2.12. I > also ran into the problem recently and played around with prctl() > (Linux) to set thread (process) name. e.g. > > ret = prctl(PR_SET_NAME,,0,0,0); > > > There are 2 issues I think: > > 1) The semantics are different than prthread_setname_np(). With > pthread_setname_np() a name can be assigned to any thread, with > prctl() the name is assigned to the active thread. That would mean > that rather than rte_eal_init(), rte_eal_intr_init() could not > assign thread names. Rather the threads would have to name themselves. > > 2) I think BSD lacks prctl(), but some (not all?) BSD > implementations have setproctitle() to do the same thing. > > > It might be too late for 2.2, but something to think about for the future. I don't think this feature is important enough to deal with old environments and to risk some complicated bugs. Do you think it deserves more tricks?