From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 01/11] telemetry: initial telemetry infrastructure Date: Thu, 23 Aug 2018 16:19:46 -0700 Message-ID: <20180823161946.4c2103eb@xeon-e3> 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 Cc: harry.van.haaren@intel.com, brian.archbold@intel.com, emma.kenny@intel.com, dev@dpdk.org To: Ciara Power 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) In-Reply-To: <1535026093-101872-2-git-send-email-ciara.power@intel.com> 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 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).