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 23A3943760; Fri, 22 Dec 2023 18:46:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62DA242E52; Fri, 22 Dec 2023 18:45:54 +0100 (CET) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id 10BE540EA5 for ; Fri, 22 Dec 2023 18:45:52 +0100 (CET) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5cdc159034eso1148104a12.0 for ; Fri, 22 Dec 2023 09:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703267151; x=1703871951; darn=dpdk.org; 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=tKaD0r1Gq5QF3fMGA0U27gZOXlR8DuTWVucyCvDtrXQ=; b=solOFYjV0vo3IDRjjlkMjQUc0/0HH7hMssGNbPBknESq+El8NFdkMLBQGDgHvh/EUJ hTVp6ng597+LZGc0J3lczAfZklcjX3ooo0ccoSIS08wGzAx0Xe5Inkf2w+9OsDWtYqbu a38b6jqMHJa3BpffDB15lf+Lpb7yJvjzrHjzWubeY2AYXVTjdenqLNEx2hcNpUy5j1aU Y75vWdpmjTpkESZ+huLVViTDf+vF8uGcqNm/XWUz90LJUy0s4LnTPpNdCg/J4GeHewr4 FPW6gTAnbUBy92gs4eeQAffUygsewdg72WOes4tqX/+mhJklgZzcSynCDqg1tf6KKw8u ld/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703267151; x=1703871951; 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=tKaD0r1Gq5QF3fMGA0U27gZOXlR8DuTWVucyCvDtrXQ=; b=dAlsxFr/20D7Pot5lcghbaqFYZAyg20m9xvHM9oE2Q9ttrWEuqUcx/GNCAP91PFcXI ZewVij0LL5SWESPXMEKrl7DfDT1JKy2CSSxjP7uYbH6lMonem3Fxwh0wylcNIdhGSs1R h0IXo0/RWRzHgGu7YTUs+ZM+ZNxu/M1jwNJF8+AM2zcD2avI1mhlWj0/lo+uQSMxfBA/ bOxvfehkYvw2EzX4IG96Kmrfrn+bWEF97uw5TlsA5CJem1FQSswEHuK72xKn7m6dDyq4 ERD6jbtgN9GOaizwtPyLraL3NuxEcpmcGQrSWx4qcj3fsm3FTz9wm8zNlqMsDiMbj1c9 JH4Q== X-Gm-Message-State: AOJu0YwamEatklobpTLovUvkOtQhUG36SFWjCvBo7XUmIZclFVBnVvqY SSchV77azMe7vR5ke2VbxtGekyZbRdbcpT0fyeCAo7PKU1KqWg== X-Google-Smtp-Source: AGHT+IGvr3uC0BIdxmRBysSF6MKmXINp/R7nCciixKcCiHfhky+3wCZRA9VhQl/O01YcRALjs4VVmA== X-Received: by 2002:a05:6a20:748e:b0:194:d71b:813c with SMTP id p14-20020a056a20748e00b00194d71b813cmr1488293pzd.82.1703267151344; Fri, 22 Dec 2023 09:45:51 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ne17-20020a17090b375100b0028b493c8c2esm7724935pjb.22.2023.12.22.09.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:45:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 3/3] pipeline: convert to a dynamic logtype Date: Fri, 22 Dec 2023 09:44:04 -0800 Message-ID: <20231222174539.13431-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222174539.13431-1-stephen@networkplumber.org> References: <20231222174539.13431-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 Replace RTE_LOGTYPE_PIPELINE static type with a dynamic one. Signed-off-by: Stephen Hemminger --- lib/log/log.c | 1 - lib/log/rte_log.h | 2 +- lib/pipeline/rte_pipeline.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/log/log.c b/lib/log/log.c index 7ae798493e51..123510616455 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -353,7 +353,6 @@ struct logtype { static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, {RTE_LOGTYPE_PMD, "pmd"}, - {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, {RTE_LOGTYPE_USER1, "user1"}, {RTE_LOGTYPE_USER2, "user2"}, diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h index 6bfa66dc8986..5f28c3832de9 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -42,7 +42,7 @@ extern "C" { /* was RTE_LOGTYPE_SCHED */ /* was RTE_LOGTYPE_PORT */ /* was RTE_LOGTYPE_TABLE */ -#define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */ + /* was RTE_LOGTYPE_PIPELINE */ /* was RTE_LOGTYPE_MBUF */ /* was RTE_LOGTYPE_CRYPTODEV */ /* was RTE_LOGTYPE_EFD */ diff --git a/lib/pipeline/rte_pipeline.c b/lib/pipeline/rte_pipeline.c index b0aea4596daa..c9ed903d716b 100644 --- a/lib/pipeline/rte_pipeline.c +++ b/lib/pipeline/rte_pipeline.c @@ -12,6 +12,9 @@ #include "rte_pipeline.h" +RTE_LOG_REGISTER_DEFAULT(pipeline_logtype, INFO); +#define RTE_LOGTYPE_PIPELINE pipeline_logtype + #define PIPELINE_LOG(level, ...) \ RTE_LOG_LINE(level, PIPELINE, "" __VA_ARGS__) -- 2.43.0