From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 86FAC493D for ; Fri, 24 Aug 2018 01:19:49 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id p12-v6so3587529pfh.2 for ; Thu, 23 Aug 2018 16:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5bvKxxX73ESy3d4BhF88ED5K8l2E4ttkDekWpceedmc=; b=YqW5UuhQc/yRzDgbXQqUQYnka4/M/llLD+zsnDEVF52nvoWZQ70wY8Li/9b8rPYrOo 0yGEPhVtZgqdoh4aHb8U3mUq4PLCmxZ2x3WFvvjRUw6D0DcoCB2VKtyGZaOww9lDSWGJ iPWWENApy4SfGYFNsQBTNTt20T6FMWflu2IDz+z3iCAF9BmjIk/pjhGonFpnv50UQTPv G39R+No90mX8yPZF/PslD6uzwhwOfQw1apAE/LWiB1k3j8yJ/gYum3LdMAneDKQgyfpd EeRP0qlpRWYO8xA8MB+EZMPVg8W6TnyPYmB2rLsFVGt+DUTE/JTrdyhEUa2TcSucJ0TO FvaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5bvKxxX73ESy3d4BhF88ED5K8l2E4ttkDekWpceedmc=; b=d0jrIsWt7arA0wBjDt4eXGKtI4Cl3nWvQlKsZUb8t/2SnQPRqa1YuCDrwq7JGhZKv3 Kv5QkSKIh40pVTrydZjRzcXtNgP1ibxdOZDp5GnKNvdjsgcKe0n/D+tIIbSazTPFkUkw qaG043z7WqT/T2N3JRDVqFhedrC4+SsNyDgP2douDFYkWfoZ6f/7of268djw4/LBJjq2 nskP6pWRJMHf0H1DTVWVOxJBNe0NA4oYJhSs+7zlcnBlQnL5pOxJUMy9D+60IxOfCB+H JnJ0r43/bzRTZ9/yU42+8T6Eml5NaSk+/H9OnpYH4xQ9xXjeqbt8VUYcT6jVlgHvpimu 0n6Q== X-Gm-Message-State: APzg51C23HRTds+TFmBEUCmYQfz+i/mL6CvVvIhaErsFbZHcv9TsHhql eQw7ednZlfXUoazfcez/fcErcg== X-Google-Smtp-Source: ANB0VdbQbIdBPJJMvxMCeNmW6Spk4ZU9xUvdG6w779k9Wn2l4WV22/ZFLkBZx6ztovjsvvO2vBUmaA== X-Received: by 2002:a62:7885:: with SMTP id t127-v6mr9481439pfc.6.1535066388745; Thu, 23 Aug 2018 16:19:48 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id r85-v6sm11215801pfd.144.2018.08.23.16.19.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Aug 2018 16:19:48 -0700 (PDT) Date: Thu, 23 Aug 2018 16:19:46 -0700 From: Stephen Hemminger To: Ciara Power Cc: harry.van.haaren@intel.com, brian.archbold@intel.com, emma.kenny@intel.com, dev@dpdk.org Message-ID: <20180823161946.4c2103eb@xeon-e3> In-Reply-To: <1535026093-101872-2-git-send-email-ciara.power@intel.com> References: <1535026093-101872-1-git-send-email-ciara.power@intel.com> <1535026093-101872-2-git-send-email-ciara.power@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 01/11] telemetry: initial telemetry infrastructure 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: , X-List-Received-Date: Thu, 23 Aug 2018 23:19:49 -0000 On Thu, 23 Aug 2018 13:08:03 +0100 Ciara Power wrote: > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2018 Intel Corporation > + */ > + > +#include > + > +#ifndef _RTE_TELEMETRY_H_ > +#define _RTE_TELEMETRY_H_ > + > +/** > + * Get the telemetry_impl structure device pointer initialised. > + * > + * @param socket_id > + * Unsigned integer representing the socket id to be used > + * for the telemetry structure. > + * > + * @return > + * 0 on successful initialisation. > + * @return > + * -ENOMEM on memory allocation error > + * @return > + * -EPERM on unknown error failure > + * @return > + * -EALREADY if Telemetry is already initialised. > + */ > +int32_t > +rte_telemetry_init(uint32_t socket_id); > + > +/** > + * Clean up and free memory. > + * > + * @return > + * 0 on success > + * @return > + * -EPERM on failure > + */ > +int32_t > +rte_telemetry_cleanup(void); > + Can this be done with RTE_INIT (i.e automatic constructor).