log: introduce logtype register macro
authorJerin Jacob <jerinj@marvell.com>
Wed, 1 Jul 2020 12:33:35 +0000 (18:03 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 3 Jul 2020 13:52:51 +0000 (15:52 +0200)
commit9c99878aa1b16de26fcce82c112b401766dd910e
tree2275d9d01d06017f6ceb080b63404a0f2c34a201
parent6749637af951e55f3d81f99bc398afa7cc8a8017
log: introduce logtype register macro

Introduce the RTE_LOG_REGISTER macro to avoid the code duplication
in the logtype registration process.

It is a wrapper macro for declaring the logtype, registering it and
setting its level in the constructor context.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Sachin Saxena <sachin.saxena@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
122 files changed:
app/test/test_efd.c
app/test/test_hash.c
app/test/test_timer_racecond.c
drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c
drivers/baseband/fpga_lte_fec/fpga_lte_fec.c
drivers/baseband/null/bbdev_null.c
drivers/baseband/turbo_sw/bbdev_turbo_software.c
drivers/bus/dpaa/dpaa_bus.c
drivers/bus/fslmc/fslmc_bus.c
drivers/bus/ifpga/ifpga_bus.c
drivers/bus/vdev/vdev.c
drivers/bus/vmbus/vmbus_common.c
drivers/common/dpaax/dpaax_iova_table.c
drivers/common/iavf/iavf_impl.c
drivers/common/octeontx/octeontx_mbox.c
drivers/common/octeontx2/otx2_common.c
drivers/common/qat/qat_logs.c
drivers/compress/isal/isal_compress_pmd.c
drivers/compress/octeontx/otx_zip_pmd.c
drivers/compress/zlib/zlib_pmd.c
drivers/crypto/aesni_gcm/aesni_gcm_pmd.c
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
drivers/crypto/caam_jr/caam_jr.c
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa_sec/dpaa_sec.c
drivers/crypto/kasumi/rte_kasumi_pmd.c
drivers/crypto/mvsam/rte_mrvl_pmd.c
drivers/crypto/nitrox/nitrox_logs.c
drivers/crypto/null/null_crypto_pmd.c
drivers/crypto/octeontx/otx_cryptodev.c
drivers/crypto/octeontx2/otx2_cryptodev.c
drivers/crypto/openssl/rte_openssl_pmd.c
drivers/crypto/scheduler/rte_cryptodev_scheduler.c
drivers/crypto/snow3g/rte_snow3g_pmd.c
drivers/crypto/virtio/virtio_cryptodev.c
drivers/crypto/zuc/rte_zuc_pmd.c
drivers/event/dpaa/dpaa_eventdev.c
drivers/event/dpaa2/dpaa2_eventdev.c
drivers/event/octeontx/ssovf_evdev.c
drivers/event/octeontx/timvf_evdev.c
drivers/event/opdl/opdl_evdev.c
drivers/event/opdl/opdl_ring.c
drivers/event/sw/sw_evdev.c
drivers/mempool/dpaa/dpaa_mempool.c
drivers/mempool/dpaa2/dpaa2_hw_mempool.c
drivers/mempool/octeontx/octeontx_fpavf.c
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/af_xdp/rte_eth_af_xdp.c
drivers/net/ark/ark_ethdev.c
drivers/net/atlantic/atl_ethdev.c
drivers/net/avp/avp_ethdev.c
drivers/net/axgbe/axgbe_ethdev.c
drivers/net/bnx2x/bnx2x_ethdev.c
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/dpaa/dpaa_ethdev.c
drivers/net/dpaa2/dpaa2_ethdev.c
drivers/net/ena/ena_ethdev.c
drivers/net/enetc/enetc_ethdev.c
drivers/net/enic/enic_ethdev.c
drivers/net/failsafe/failsafe.c
drivers/net/fm10k/fm10k_ethdev.c
drivers/net/hinic/hinic_pmd_ethdev.c
drivers/net/hns3/hns3_ethdev.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/iavf/iavf_ethdev.c
drivers/net/ice/ice_ethdev.c
drivers/net/igc/igc_logs.c
drivers/net/ionic/ionic_ethdev.c
drivers/net/ipn3ke/ipn3ke_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/kni/rte_eth_kni.c
drivers/net/liquidio/lio_ethdev.c
drivers/net/memif/rte_eth_memif.c
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5.c
drivers/net/mvneta/mvneta_ethdev.c
drivers/net/mvpp2/mrvl_ethdev.c
drivers/net/netvsc/hn_ethdev.c
drivers/net/nfp/nfp_net.c
drivers/net/null/rte_eth_null.c
drivers/net/octeontx/octeontx_ethdev.c
drivers/net/pcap/rte_eth_pcap.c
drivers/net/pfe/pfe_ethdev.c
drivers/net/qede/qede_ethdev.c
drivers/net/ring/rte_eth_ring.c
drivers/net/softnic/rte_eth_softnic.c
drivers/net/szedata2/rte_eth_szedata2.c
drivers/net/tap/rte_eth_tap.c
drivers/net/thunderx/nicvf_ethdev.c
drivers/net/vdev_netvsc/vdev_netvsc.c
drivers/net/vhost/rte_eth_vhost.c
drivers/net/virtio/virtio_ethdev.c
drivers/net/vmxnet3/vmxnet3_ethdev.c
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c
drivers/raw/dpaa2_qdma/dpaa2_qdma.c
drivers/raw/ifpga/ifpga_rawdev.c
drivers/raw/ioat/ioat_rawdev.c
drivers/raw/ioat/rte_ioat_rawdev.h
drivers/raw/ntb/ntb.c
drivers/raw/skeleton/skeleton_rawdev.c
drivers/vdpa/ifc/ifcvf_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.c
lib/librte_bbdev/rte_bbdev.c
lib/librte_bpf/bpf.c
lib/librte_cfgfile/rte_cfgfile.c
lib/librte_compressdev/rte_compressdev.c
lib/librte_compressdev/rte_compressdev_pmd.c
lib/librte_eal/include/rte_log.h
lib/librte_ethdev/rte_ethdev.c
lib/librte_eventdev/rte_event_timer_adapter.c
lib/librte_flow_classify/rte_flow_classify.c
lib/librte_graph/graph.c
lib/librte_member/rte_member.c
lib/librte_metrics/rte_metrics_telemetry.c
lib/librte_node/log.c
lib/librte_pdump/rte_pdump.c
lib/librte_rawdev/rte_rawdev.c
lib/librte_rcu/rte_rcu_qsbr.c
lib/librte_stack/rte_stack.c
lib/librte_vhost/vhost.c