From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D881A04DC; Tue, 20 Oct 2020 15:39:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BB630BAE8; Tue, 20 Oct 2020 15:39:08 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 61008BAD4 for ; Tue, 20 Oct 2020 15:39:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603201144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/SVstu94SQaKTeugr+lMlsaiC6ynz6ga8dUdbgIf9Ao=; b=ObmSdthovRSt19kXrhAJSIWph68SBVvaoMOPhbVtGGDMSAHIglS6rCKDhCH77HYfW5Fgun Z7HX0PAlFa78xamDek1fXJ6LH4Fg7KTjpuc8QerE2fbRRUxv5RdcQu57wiAmRimYdh5FbS 80DRarbS8pvHClsNzZrIt43OPqPo1Ig= Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-513-fAfZDzinOkCWhUttVsSq3A-1; Tue, 20 Oct 2020 09:39:02 -0400 X-MC-Unique: fAfZDzinOkCWhUttVsSq3A-1 Received: by mail-vs1-f70.google.com with SMTP id q26so666127vsp.5 for ; Tue, 20 Oct 2020 06:39:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/SVstu94SQaKTeugr+lMlsaiC6ynz6ga8dUdbgIf9Ao=; b=Lj15Q8JNsEmmKu7CMLu0tTAscV1LqwfvLvv9inHxwCTllXVqqwv2c0zflkQ/w1A8TE dHaYPgzC19XZZTKNaBx5r2rtzCy9J1H+7emhKEDP0kBQq8Re69qVQCjJoM+lmC8dCsYX Kx2oXkA8b5vKalsanWGgeMdqGIhmrqPHzyRW6fV3pWF+YnkfIP4/q5CTnmLhTlyRD4mN jqp3pp0hLAwqUJWetyfF9+sM0BY5uI/Dqs+DBdyRFD6q+BabvOzGIsJDfj0t5LzckXm7 NYg0NARtNwOG/JUYNyFReZ4Xwc4nriS+fMMb+vDm8AfHCLcSDT3bdP5sENHHlMdCatWS 6IGg== X-Gm-Message-State: AOAM5328hMHEKUe90uCqFfjOTGNFBreXNzppC2BUF4WAKhmAwMmGtNKH vf1ck5BJv/7QkMIdm9lL7bZUMUm5/BLzPqLzjt31ksLU6szfYkHzb9EBinKuhPA2wdyKQeYLHX7 BQYYfEXeAz2mdXHgf39g= X-Received: by 2002:a05:6102:5d:: with SMTP id k29mr1543353vsp.17.1603201142420; Tue, 20 Oct 2020 06:39:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmk8r65xUQ+VUHiundgRsmdgrfY5gpHotCt7eo3CysOdie8bhU95jqxObB3pbAFMEn3F5ZHiF3tV1pgGiNgKE= X-Received: by 2002:a05:6102:5d:: with SMTP id k29mr1543329vsp.17.1603201142203; Tue, 20 Oct 2020 06:39:02 -0700 (PDT) MIME-Version: 1.0 References: <8df56fc2-781a-a2dd-c8b8-87696299b921@ericsson.com> <20200810093652.102078-1-mattias.ronnblom@ericsson.com> In-Reply-To: <20200810093652.102078-1-mattias.ronnblom@ericsson.com> From: David Marchand Date: Tue, 20 Oct 2020 15:38:51 +0200 Message-ID: To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: Ray Kinsella , Neil Horman , dev , tomasz.piatkowski@ericsson.com, nd , Stephen Hemminger , Honnappa Nagarahalli , Van Haaren Harry , Dmitry Kozlyuk Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [RFC] eal: introduce function to get lcore thread id X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Aug 10, 2020 at 11:37 AM Mattias R=C3=B6nnblom wrote: > > Introduce function in to retrieve a lcore worker > thread's pthread id. > > This change allows applications to do things like changing the name of > a lcore thread, or detect if it's getting interrupted (e.g. getting > preempted by another thread). > > Signed-off-by: Mattias R=C3=B6nnblom I can see no feedback. I am a bit reluctant at giving access to this info which is not really abstracted across OS.. Is there no other way to achieve what you wanted? --=20 David Marchand