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 8B31841C33; Tue, 7 Feb 2023 21:41:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D2694021F; Tue, 7 Feb 2023 21:41:56 +0100 (CET) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id 11C5D40151 for ; Tue, 7 Feb 2023 21:41:54 +0100 (CET) Received: by mail-pj1-f53.google.com with SMTP id ge21-20020a17090b0e1500b002308aac5b5eso10089448pjb.4 for ; Tue, 07 Feb 2023 12:41:54 -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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=25Q6X+g2KV+OvFpx4VlJx9Yz/pKhTPcBbuCTocKjlPo=; b=vfO5eGiecy6k7DLf83k11lDcgigsBC5p2heLOqOTot3WPoBFODMdGkCuUPLw2F0q61 w7IXknKBrKcqkz7kyi4iAfBRafxtbzMpVIGd2sa/zH71zsWatZGKwQ+hzrP4wLcouIJG zNw2/FZIFXuHoMWjTNBc1OjwqdFj9anAlvFyftRpghqwoVpzzAYmmFuxinnp3sAKe35c 5GENL7MpUP1Wkk+NG0NwgtjzC1A5wD8YM9FlkeGsmLCNU2sXhYASml62opKaVN12k4Fr GQbXqPCK93D8w1Ob2Hrt/g3/v42CoWsDjFULAMxqJAltkyGX6M6/8TyPJOmugsYTip/C 8tQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=25Q6X+g2KV+OvFpx4VlJx9Yz/pKhTPcBbuCTocKjlPo=; b=nXMtRFD/ojRfU0YL/rP/zNvmzNujIVmgomUzRgELyWaROtFVAgDu0Ndf5umNMEs/Na narbzGap8XiOIgu6VUptyx/fO9gdbm/TMMrHBqY8P9SKnxTpdtHfLuxRWAk1haitFUEc bR42jdnXIJAwb9b1q8eBJcmJ5Cv5qKs2M57u21leH6gzEcqka0/LrQK5NEPty58Lb2pU PFSpouESPiNKLChuqyVwi+6L8AzSCn1GqG5T/Ocg8mhA5LidJ1ZAeJuqyz5gQkGaeVGu t4Zvo7gPgWv2HQ0QlLhE69KkX8EwmpMjgIfDUz/27EoPD0qgxyB949MTsT7cJrm+zTuj efMw== X-Gm-Message-State: AO0yUKXS+dASZAbaji7RyBFzsGh5qiegSh9FaqfXKmu6fAFZIK/Y1K4o 6Nqwak66o0og1osyh7wygjsaAIEAgj+qcxH+k6o= X-Google-Smtp-Source: AK7set8v0DrmiQBNmw/Wh15SR/sCmHCtPf7g5mXdysRd4DOcNkrcUCl7e7AgDHPKDzry/JoalIoggg== X-Received: by 2002:a17:902:c111:b0:192:835d:c861 with SMTP id 17-20020a170902c11100b00192835dc861mr4040302pli.68.1675802513654; Tue, 07 Feb 2023 12:41:53 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id jk24-20020a170903331800b00194ab9a4febsm4725562plb.74.2023.02.07.12.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 12:41:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [RFC 00/13] Replace static logtypes with static Date: Tue, 7 Feb 2023 12:41:38 -0800 Message-Id: <20230207204151.1503491-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 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 This is a first draft and tackling the removal of static logtypes. It starts with the easy one and goes on to the more complex ones. It does not address the biggest effort which is the eal, eventdev, cryptodev, and pmd log types. Mostly this is semi-automatic conversion but some places like hash required some additional steps. Stephen Hemminger (13): doc: document intention to deprecate RTE_LOGTYPE_USER* gso: remove logtype log: drop unused RTE_LOGTYPE_TIMER efd: replace RTE_LOGTYPE_EFD with local type mbuf: replace RTE_LOGTYPE_MBUF with dynamic type acl: replace LOGTYPE_ACL with dynamic type power: replace RTE_LOGTYPE_POWER with dynamic type ring: replace RTE_LOGTYPE_RING with dynamic type mempool: replace RTE_LOGTYPE_MEMPOOL with dynamic type lpm: replace RTE_LOGTYPE_LPM with dynamic types kni: replace RTE_LOGTYPE_KNI with dynamic type hash: replace RTE_LOGTYPE_HASH with dynamic type sched: replace RTE_LOGTYPE_SCHED with dynamic type app/test/test_acl.c | 3 +- .../prog_guide/writing_efficient_code.rst | 3 +- doc/guides/rel_notes/deprecation.rst | 4 + lib/acl/acl.h | 5 + lib/acl/acl_bld.c | 34 +- lib/acl/acl_gen.c | 19 +- lib/acl/rte_acl.c | 13 +- lib/acl/tb_mem.c | 9 +- lib/eal/common/eal_common_log.c | 15 +- lib/eal/include/rte_log.h | 27 +- lib/efd/rte_efd.c | 106 +++---- lib/fib/rte_fib.c | 23 +- lib/fib/rte_fib6.c | 21 +- lib/gso/rte_gso.c | 3 +- lib/hash/rte_cuckoo_hash.c | 60 ++-- lib/hash/rte_fbk_hash.c | 10 +- lib/hash/rte_hash_crc.h | 6 +- lib/hash/rte_thash.c | 54 +++- lib/hash/rte_thash_gfni.h | 24 +- lib/hash/version.map | 4 + lib/kni/rte_kni.c | 63 ++-- lib/lpm/rte_lpm.c | 18 +- lib/lpm/rte_lpm6.c | 25 +- lib/mbuf/mbuf_log.h | 10 + lib/mbuf/rte_mbuf.c | 20 +- lib/mbuf/rte_mbuf_dyn.c | 15 +- lib/mbuf/rte_mbuf_pool_ops.c | 5 +- lib/mempool/rte_mempool.c | 33 +- lib/mempool/rte_mempool_log.h | 10 + lib/mempool/rte_mempool_ops.c | 12 +- lib/power/guest_channel.c | 48 +-- lib/power/power_acpi_cpufreq.c | 118 +++---- lib/power/power_common.c | 11 +- lib/power/power_common.h | 7 +- lib/power/power_cppc_cpufreq.c | 129 ++++---- lib/power/power_kvm_vm.c | 24 +- lib/power/power_pstate_cpufreq.c | 166 +++++----- lib/power/rte_power.c | 25 +- lib/power/rte_power_empty_poll.c | 36 +-- lib/power/rte_power_intel_uncore.c | 75 ++--- lib/power/rte_power_pmd_mgmt.c | 37 ++- lib/rib/rte_rib.c | 14 +- lib/rib/rte_rib6.c | 16 +- lib/ring/rte_ring.c | 31 +- lib/sched/rte_pie.c | 16 +- lib/sched/rte_sched.c | 297 +++++++----------- lib/sched/rte_sched_log.h | 11 + 47 files changed, 915 insertions(+), 800 deletions(-) create mode 100644 lib/mbuf/mbuf_log.h create mode 100644 lib/mempool/rte_mempool_log.h create mode 100644 lib/sched/rte_sched_log.h -- 2.39.1