From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3EF4741C7B; Sun, 12 Feb 2023 17:15:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DE1F42D10; Sun, 12 Feb 2023 17:15:02 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 9E63542C4D for ; Sun, 12 Feb 2023 17:15:00 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id e10-20020a17090a630a00b0022bedd66e6dso14695505pjj.1 for ; Sun, 12 Feb 2023 08:15:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R9wIe9qMWy4gg4mMTnDLAbpI5lNgUox8Qod56/q4hzk=; b=2lA/mXxLzNYZpDeA6MEZxYLocszfVr1JrCcks01ruwhNaSWePh7CubFxtXd0TDULfr kGPsQrKKRT9fU/tgrjVUG1fhHOLGx2vILUb5VXTQMkw0ww58Uvtc4iL5XqGjdT9c9YVl TEdxaoR4ICcqbGqoyoDrR9zlrCd4SpyC+Ybm6nfAfli1RQ4g0hC5ox3JAuF5PWS057LT /f7SlQZTzTQVhgIQtQV4hkR1JO8da9lBX29/NQxs1Szre7rASEjvCPl00/RCMzAW26g/ mWtVASwLcyIiCGCXKkg7633MypQw/nS++Td+GEwEevtXxQlrT43B1jqnBg9AvrEk9+Ju If6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R9wIe9qMWy4gg4mMTnDLAbpI5lNgUox8Qod56/q4hzk=; b=2X3TFO5w27HV3+o0/vkLxgEN98L7wa7KvZlE3m+N0C3he4zjEpOH/vMpsjP4/j76VR Uo8JCxM0h1eZNRknxegVOYL8BtKCBH8x7kClXOvdAjbNlKFjJqNEkOmyg5d3t9EaMWle 9WmAPb6mNUlYx7Qhf9lR442B3IIj0xM4B+B4O7Z1VdfJMIUAl9uOlmQxWdkppwOJW/tH kMsoXJxXji13fiLwIwQDR/hVkr63pF0RKDWPwhKpUcXwS/dFHu+EUPrS40jeYQaJbXgt lgDLdJvNVxhwYe1rit+zJDYuwh4ua5QnuVF4Pzxaxt1waQj65l6129jofqhOfHE1MUo9 Ngdw== X-Gm-Message-State: AO0yUKVNim0huK45sn3K772R+HYNS6MqXSs5ZBEeE6/mo4e5AfjhNV9F wX8z+PO5xZSCp0tWpHNvQXbda0ao6oW/9eWsil4= X-Google-Smtp-Source: AK7set8GDciJ3bzxJM7ayarjWZXgw6LhhGIY+q+Ks2qXV+ceTu9gUFouMr1jnu94cb5pscCzNMp6YA== X-Received: by 2002:a17:90b:3ec3:b0:233:f354:e7df with SMTP id rm3-20020a17090b3ec300b00233f354e7dfmr1372699pjb.18.1676218499557; Sun, 12 Feb 2023 08:14:59 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a14-20020a17090abe0e00b002308e6e645bsm2709817pjs.49.2023.02.12.08.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 08:14:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , reshma.pattan@intel.com, Remy Horton , Harry van Haaren Subject: [PATCH 3/5] latencystats: use dynamic logtype Date: Sun, 12 Feb 2023 08:14:52 -0800 Message-Id: <20230212161454.836493-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230212161454.836493-1-stephen@networkplumber.org> References: <20230208044825.1682620-1-stephen@networkplumber.org> <20230212161454.836493-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Libraries should not reuse RTE_LOGTYPE_USER1 for their logging. Instead they should register their own type. Fixes: 5cd3cac9ed22 ("latency: added new library for latency stats") Cc: reshma.pattan@intel.com Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/latencystats/rte_latencystats.c b/lib/latencystats/rte_latencystats.c index 8985a377db4e..f3c1746cca00 100644 --- a/lib/latencystats/rte_latencystats.c +++ b/lib/latencystats/rte_latencystats.c @@ -26,7 +26,8 @@ latencystat_cycles_per_ns(void) } /* Macros for printing using RTE_LOG */ -#define RTE_LOGTYPE_LATENCY_STATS RTE_LOGTYPE_USER1 +RTE_LOG_REGISTER_DEFAULT(latencystat_logtype, INFO); +#define RTE_LOGTYPE_LATENCY_STATS latencystat_logtype static uint64_t timestamp_dynflag; static int timestamp_dynfield_offset = -1; -- 2.39.1