eal: simplify exit functions
PATCH 1/1 eal: simplify exit functions
The option RTE_EAL_ALWAYS_PANIC_ON_ERROR was off by default, and not customizable with meson. It is completely removed.
The function rte_dump_registers is a trace of the bare metal support era, and was not supported in userland. It is completely removed.
---
Because the empty function rte_dump_registers is part of the ABI, this change is planned for DPDK 20.11.
--- app/test/test_debug.c | 3 --- config/common_base | 1 - doc/guides/howto/debug_troubleshoot.rst | 2 +- lib/librte_eal/common/eal_common_debug.c | 17 +---------------- lib/librte_eal/include/rte_debug.h | 7 ------- lib/librte_eal/rte_eal_version.map | 1 - 6 files changed, 2 insertions(+), 29 deletions(-)
app/test/test_debug.c +0 -3
@@ -66,13 +66,11 @@ test_exit_val(int exit_val) }wait (&status);printf ("Child process status: %d\n" , status); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (!WIFEXITED (status) ||WEXITSTATUS (status) != (uint8_t )exit_val){printf ("Child process terminated with incorrect status (expected = %d)!\n" , exit_val);return -1 ; } -#endif return 0 ; }
@@ -113,7 +111,6 @@ static inttest_debug (void) {rte_dump_stack (); -rte_dump_registers ();if (test_panic () <0 )return -1 ;if (test_exit () <0 )
config/common_base +0 -1
@@ -103,7 +103,6 @@ CONFIG_RTE_ENABLE_TRACE_FP=n CONFIG_RTE_LOG_HISTORY=256 CONFIG_RTE_BACKTRACE=y CONFIG_RTE_LIBEAL_USE_HPET=n -CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n CONFIG_RTE_EAL_IGB_UIO=n CONFIG_RTE_EAL_VFIO=n CONFIG_RTE_MAX_VFIO_GROUPS=64
doc/guides/howto/debug_troubleshoot.rst +1 -1
@@ -313,7 +313,7 @@ Custom worker function :numref:`dtg_distributor_worker`. * For high-performance execution logic ensure running it on correct NUMA and non-master core. - * Analyze run logic with ``rte_dump_stack``, ``rte_dump_registers`` and + * Analyze run logic with ``rte_dump_stack`` and ``rte_memdump`` for more insights. * Make use of objdump to ensure opcode is matching to the desired state.
lib/librte_eal/common/eal_common_debug.c +1 -16
@@ -7,14 +7,6 @@#include <rte_log.h> #include <rte_debug.h> -/* not implemented */ -void -rte_dump_registers (void ) -{ -return ; -} - -/* call abort(), it will generate a coredump if enabled */ void __rte_panic (const char *funcname,const char *format, ...) {
@@ -25,8 +17,7 @@ __rte_panic(const char *funcname, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap);rte_dump_stack (); -rte_dump_registers (); -abort (); +abort ();/* generate a coredump if enabled */ }/*
@@ -46,14 +37,8 @@ rte_exit(int exit_code, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (rte_eal_cleanup () !=0 )RTE_LOG (CRIT ,EAL ,"EAL could not release all resources\n" );exit (exit_code); -#else -rte_dump_stack (); -rte_dump_registers (); -abort (); -#endif }
lib/librte_eal/include/rte_debug.h +0 -7
@@ -26,13 +26,6 @@ extern "C" {*/ void rte_dump_stack (void ); -/** -* Dump the registers of the calling core to the console. -* -* Note: Not implemented in a userapp environment; use gdb instead. -*/ -void rte_dump_registers (void ); -/** * Provide notification of a critical non-recoverable error and terminate * execution abnormally.
lib/librte_eal/rte_eal_version.map +0 -1
@@ -37,7 +37,6 @@ DPDK_20.0 { rte_devargs_remove; rte_devargs_type_count; rte_dump_physmem_layout; - rte_dump_registers; rte_dump_stack; rte_dump_tailq; rte_eal_alarm_cancel;
Signature · 1 line
2.26.2
Quoted 138 lines · Thomas Monjalon
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.Signed-off-by Thomas Monjalon <[email protected]>---
Because the empty functionrte_dump_registersis part of the ABI, this change is planned for DPDK 20.11.--- app/test/test_debug.c | 3 --- config/common_base | 1 - doc/guides/howto/debug_troubleshoot.rst | 2 +- lib/librte_eal/common/eal_common_debug.c | 17 +---------------- lib/librte_eal/include/rte_debug.h | 7 ------- lib/librte_eal/rte_eal_version.map | 1 - 6 files changed, 2 insertions(+), 29 deletions(-)app/test/test_debug.c +0
-3@@ -66,13 +66,11 @@ test_exit_val(int exit_val) }wait (&status);printf ("Child process status: %d\n" , status); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (!WIFEXITED (status) ||WEXITSTATUS (status) != (uint8_t )exit_val){printf ("Child process terminated with incorrect status (expected = %d)!\n" , exit_val);return -1 ; } -#endif return 0 ; }@@ -113,7 +111,6 @@ static inttest_debug (void) {rte_dump_stack (); -rte_dump_registers ();if (test_panic () <0 )return -1 ;if (test_exit () <0 )config/common_base +0
-1@@ -103,7 +103,6 @@ CONFIG_RTE_ENABLE_TRACE_FP=n CONFIG_RTE_LOG_HISTORY=256 CONFIG_RTE_BACKTRACE=y CONFIG_RTE_LIBEAL_USE_HPET=n -CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n CONFIG_RTE_EAL_IGB_UIO=n CONFIG_RTE_EAL_VFIO=n CONFIG_RTE_MAX_VFIO_GROUPS=64doc/guides/howto/debug_troubleshoot.rst +1
-1@@ -313,7 +313,7 @@ Custom worker function :numref:`dtg_distributor_worker`. * For high-performance execution logic ensure running it on correct NUMA and non-master core. - * Analyze run logic with ``rte_dump_stack``, ``rte_dump_registers`` and + * Analyze run logic with ``rte_dump_stack`` and ``rte_memdump`` for more insights. * Make use of objdump to ensure opcode is matching to the desired state.lib/librte_eal/common/eal_common_debug.c +1
-16@@ -7,14 +7,6 @@#include <rte_log.h> #include <rte_debug.h> -/* not implemented */ -void -rte_dump_registers (void ) -{ -return ; -} - -/* call abort(), it will generate a coredump if enabled */ void __rte_panic (const char *funcname,const char *format, ...) {@@ -25,8 +17,7 @@ __rte_panic(const char *funcname, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap);rte_dump_stack (); -rte_dump_registers (); -abort (); +abort ();/* generate a coredump if enabled */ }/* @@ -46,14 +37,8 @@ rte_exit(int exit_code, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (rte_eal_cleanup () !=0 )RTE_LOG (CRIT ,EAL ,"EAL could not release all resources\n" );exit (exit_code); -#else -rte_dump_stack (); -rte_dump_registers (); -abort (); -#endif }lib/librte_eal/include/rte_debug.h +0
-7@@ -26,13 +26,6 @@ extern "C" {*/ void rte_dump_stack (void ); -/** -* Dump the registers of the calling core to the console. -* -* Note: Not implemented in a userapp environment; use gdb instead. -*/ -void rte_dump_registers (void ); -/** * Provide notification of a critical non-recoverable error and terminate * execution abnormally. lib/librte_eal/rte_eal_version.map +0
-0
lib/librte_eal/rte_eal_version.map DPDK_20.0 { · line 42
Quoted 7 lines
lib/librte_eal/rte_eal_version.map +0
-1@@ -37,7 +37,6 @@ DPDK_20.0 { rte_devargs_remove; rte_devargs_type_count; rte_dump_physmem_layout; - rte_dump_registers; rte_dump_stack; rte_dump_tailq; rte_eal_alarm_cancel;
PATCH v2 1/1 eal: simplify exit functions
In reply to Thomas MonjalonThe option RTE_EAL_ALWAYS_PANIC_ON_ERROR was off by default, and not customizable with meson. It is completely removed.
The function rte_dump_registers is a trace of the bare metal support era, and was not supported in userland. It is completely removed.
---
The deprecation notice for this removal has been missed. I assume it would not hurt anybody to remove this useless function from DPDK 20.11. Asking the Technical Board for confirmation.
--- app/test/test_debug.c | 3 --- doc/guides/howto/debug_troubleshoot.rst | 2 +- doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_eal/common/eal_common_debug.c | 17 +---------------- lib/librte_eal/include/rte_debug.h | 7 ------- lib/librte_eal/rte_eal_version.map | 1 - 6 files changed, 4 insertions(+), 28 deletions(-)
app/test/test_debug.c +0 -3
@@ -66,13 +66,11 @@ test_exit_val(int exit_val) }wait (&status);printf ("Child process status: %d\n" , status); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (!WIFEXITED (status) ||WEXITSTATUS (status) != (uint8_t )exit_val){printf ("Child process terminated with incorrect status (expected = %d)!\n" , exit_val);return -1 ; } -#endif return 0 ; }
@@ -113,7 +111,6 @@ static inttest_debug (void) {rte_dump_stack (); -rte_dump_registers ();if (test_panic () <0 )return -1 ;if (test_exit () <0 )
doc/guides/howto/debug_troubleshoot.rst +1 -1
@@ -314,7 +314,7 @@ Custom worker function :numref:`dtg_distributor_worker`. * For high-performance execution logic ensure running it on correct NUMA and non-master core. - * Analyze run logic with ``rte_dump_stack``, ``rte_dump_registers`` and + * Analyze run logic with ``rte_dump_stack`` and ``rte_memdump`` for more insights. * Make use of objdump to ensure opcode is matching to the desired state.
doc/guides/rel_notes/release_20_11.rst +2 -0
@@ -184,6 +184,8 @@ ABI Changes Also, make sure to start the actual text at the margin. ======================================================= +* eal: Removed the not implemented function ``rte_dump_registers()``. + * ``ethdev`` changes * Following device operation function pointers moved
lib/librte_eal/common/eal_common_debug.c +1 -16
@@ -7,14 +7,6 @@#include <rte_log.h> #include <rte_debug.h> -/* not implemented */ -void -rte_dump_registers (void ) -{ -return ; -} - -/* call abort(), it will generate a coredump if enabled */ void __rte_panic (const char *funcname,const char *format, ...) {
@@ -25,8 +17,7 @@ __rte_panic(const char *funcname, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap);rte_dump_stack (); -rte_dump_registers (); -abort (); +abort ();/* generate a coredump if enabled */ }/*
@@ -46,14 +37,8 @@ rte_exit(int exit_code, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (rte_eal_cleanup () !=0 )RTE_LOG (CRIT ,EAL ,"EAL could not release all resources\n" );exit (exit_code); -#else -rte_dump_stack (); -rte_dump_registers (); -abort (); -#endif }
lib/librte_eal/include/rte_debug.h +0 -7
@@ -26,13 +26,6 @@ extern "C" {*/ void rte_dump_stack (void ); -/** -* Dump the registers of the calling core to the console. -* -* Note: Not implemented in a userapp environment; use gdb instead. -*/ -void rte_dump_registers (void ); -/** * Provide notification of a critical non-recoverable error and terminate * execution abnormally.
lib/librte_eal/rte_eal_version.map +0 -1
@@ -38,7 +38,6 @@ DPDK_21 { rte_devargs_remove; rte_devargs_type_count; rte_dump_physmem_layout; - rte_dump_registers; rte_dump_stack; rte_dump_tailq; rte_eal_alarm_cancel;
Signature · 1 line
2.28.0
Quoted 6 lines · Thomas Monjalon
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.
Quoted 7 lines
Signed-off-by Thomas Monjalon <[email protected]>Acked-by Ray Kinsella <[email protected]>---
The deprecation notice for this removal has been missed. I assume it would not hurt anybody to remove this useless function from DPDK 20.11. Asking the Technical Board for confirmation.
---
Quoted 140 lines
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.Signed-off-by Thomas Monjalon <[email protected]>Acked-by Ray Kinsella <[email protected]>---
The deprecation notice for this removal has been missed. I assume it would not hurt anybody to remove this useless function from DPDK 20.11. Asking the Technical Board for confirmation.--- app/test/test_debug.c | 3 --- doc/guides/howto/debug_troubleshoot.rst | 2 +- doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_eal/common/eal_common_debug.c | 17 +---------------- lib/librte_eal/include/rte_debug.h | 7 ------- lib/librte_eal/rte_eal_version.map | 1 - 6 files changed, 4 insertions(+), 28 deletions(-)app/test/test_debug.c +0
-3@@ -66,13 +66,11 @@ test_exit_val(int exit_val) }wait (&status);printf ("Child process status: %d\n" , status); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (!WIFEXITED (status) ||WEXITSTATUS (status) != (uint8_t )exit_val){printf ("Child process terminated with incorrect status (expected = %d)!\n" , exit_val);return -1 ; } -#endif return 0 ; }@@ -113,7 +111,6 @@ static inttest_debug (void) {rte_dump_stack (); -rte_dump_registers ();if (test_panic () <0 )return -1 ;if (test_exit () <0 )doc/guides/howto/debug_troubleshoot.rst +1
-1@@ -314,7 +314,7 @@ Custom worker function :numref:`dtg_distributor_worker`. * For high-performance execution logic ensure running it on correct NUMA and non-master core. - * Analyze run logic with ``rte_dump_stack``, ``rte_dump_registers`` and + * Analyze run logic with ``rte_dump_stack`` and ``rte_memdump`` for more insights. * Make use of objdump to ensure opcode is matching to the desired state.doc/guides/rel_notes/release_20_11.rst +2
-0@@ -184,6 +184,8 @@ ABI Changes Also, make sure to start the actual text at the margin. ======================================================= +* eal: Removed the not implemented function ``rte_dump_registers()``. + * ``ethdev`` changes * Following device operation function pointers movedlib/librte_eal/common/eal_common_debug.c +1
-16@@ -7,14 +7,6 @@#include <rte_log.h> #include <rte_debug.h> -/* not implemented */ -void -rte_dump_registers (void ) -{ -return ; -} - -/* call abort(), it will generate a coredump if enabled */ void __rte_panic (const char *funcname,const char *format, ...) {@@ -25,8 +17,7 @@ __rte_panic(const char *funcname, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap);rte_dump_stack (); -rte_dump_registers (); -abort (); +abort ();/* generate a coredump if enabled */ }/* @@ -46,14 +37,8 @@ rte_exit(int exit_code, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (rte_eal_cleanup () !=0 )RTE_LOG (CRIT ,EAL ,"EAL could not release all resources\n" );exit (exit_code); -#else -rte_dump_stack (); -rte_dump_registers (); -abort (); -#endif }lib/librte_eal/include/rte_debug.h +0
-7@@ -26,13 +26,6 @@ extern "C" {*/ void rte_dump_stack (void ); -/** -* Dump the registers of the calling core to the console. -* -* Note: Not implemented in a userapp environment; use gdb instead. -*/ -void rte_dump_registers (void ); -/** * Provide notification of a critical non-recoverable error and terminate * execution abnormally. lib/librte_eal/rte_eal_version.map +0
-0
lib/librte_eal/rte_eal_version.map DPDK_21 {
Quoted 8 lines
lib/librte_eal/rte_eal_version.map +0
-2@@ -38,7 +38,6 @@ DPDK_21 { rte_devargs_remove; rte_devargs_type_count; rte_dump_physmem_layout; - rte_dump_registers; rte_dump_stack; rte_dump_tailq; rte_eal_alarm_cancel; --
Quoted 1 line
2.28.0
Quoted 6 lines · Thomas Monjalon
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.
Quoted 7 lines
Signed-off-by Thomas Monjalon <[email protected]>Acked-by Ray Kinsella <[email protected]>---
The deprecation notice for this removal has been missed. I assume it would not hurt anybody to remove this useless function from DPDK 20.11. Asking the Technical Board for confirmation.
---
Quoted 135 lines
app/test/test_debug.c | 3 --- doc/guides/howto/debug_troubleshoot.rst | 2 +- doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_eal/common/eal_common_debug.c | 17 +---------------- lib/librte_eal/include/rte_debug.h | 7 ------- lib/librte_eal/rte_eal_version.map | 1 - 6 files changed, 4 insertions(+), 28 deletions(-)app/test/test_debug.c +0
-3@@ -66,13 +66,11 @@ test_exit_val(int exit_val) }wait (&status);printf ("Child process status: %d\n" , status); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (!WIFEXITED (status) ||WEXITSTATUS (status) != (uint8_t )exit_val){printf ("Child process terminated with incorrect status (expected = %d)!\n" , exit_val);return -1 ; } -#endif return 0 ; }@@ -113,7 +111,6 @@ static inttest_debug (void) {rte_dump_stack (); -rte_dump_registers ();if (test_panic () <0 )return -1 ;if (test_exit () <0 )doc/guides/howto/debug_troubleshoot.rst +1
-1@@ -314,7 +314,7 @@ Custom worker function :numref:`dtg_distributor_worker`. * For high-performance execution logic ensure running it on correct NUMA and non-master core. - * Analyze run logic with ``rte_dump_stack``, ``rte_dump_registers`` and + * Analyze run logic with ``rte_dump_stack`` and ``rte_memdump`` for more insights. * Make use of objdump to ensure opcode is matching to the desired state.doc/guides/rel_notes/release_20_11.rst +2
-0@@ -184,6 +184,8 @@ ABI Changes Also, make sure to start the actual text at the margin. ======================================================= +* eal: Removed the not implemented function ``rte_dump_registers()``. + * ``ethdev`` changes * Following device operation function pointers movedlib/librte_eal/common/eal_common_debug.c +1
-16@@ -7,14 +7,6 @@#include <rte_log.h> #include <rte_debug.h> -/* not implemented */ -void -rte_dump_registers (void ) -{ -return ; -} - -/* call abort(), it will generate a coredump if enabled */ void __rte_panic (const char *funcname,const char *format, ...) {@@ -25,8 +17,7 @@ __rte_panic(const char *funcname, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap);rte_dump_stack (); -rte_dump_registers (); -abort (); +abort ();/* generate a coredump if enabled */ }/* @@ -46,14 +37,8 @@ rte_exit(int exit_code, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (rte_eal_cleanup () !=0 )RTE_LOG (CRIT ,EAL ,"EAL could not release all resources\n" );exit (exit_code); -#else -rte_dump_stack (); -rte_dump_registers (); -abort (); -#endif }lib/librte_eal/include/rte_debug.h +0
-7@@ -26,13 +26,6 @@ extern "C" {*/ void rte_dump_stack (void ); -/** -* Dump the registers of the calling core to the console. -* -* Note: Not implemented in a userapp environment; use gdb instead. -*/ -void rte_dump_registers (void ); -/** * Provide notification of a critical non-recoverable error and terminate * execution abnormally. lib/librte_eal/rte_eal_version.map +0
-1@@ -38,7 +38,6 @@ DPDK_21 { rte_devargs_remove; rte_devargs_type_count; rte_dump_physmem_layout; - rte_dump_registers; rte_dump_stack; rte_dump_tailq; rte_eal_alarm_cancel;
Quoted 149 lines · Thomas Monjalon
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.Signed-off-by Thomas Monjalon <[email protected]>Acked-by Ray Kinsella <[email protected]>---
The deprecation notice for this removal has been missed. I assume it would not hurt anybody to remove this useless function from DPDK 20.11. Asking the Technical Board for confirmation.--- app/test/test_debug.c | 3 --- doc/guides/howto/debug_troubleshoot.rst | 2 +- doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_eal/common/eal_common_debug.c | 17 +---------------- lib/librte_eal/include/rte_debug.h | 7 ------- lib/librte_eal/rte_eal_version.map | 1 - 6 files changed, 4 insertions(+), 28 deletions(-)app/test/test_debug.c +0
-3@@ -66,13 +66,11 @@ test_exit_val(int exit_val) }wait (&status);printf ("Child process status: %d\n" , status); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (!WIFEXITED (status) ||WEXITSTATUS (status) != (uint8_t )exit_val){printf ("Child process terminated with incorrect status (expected = %d)!\n" , exit_val);return -1 ; } -#endif return 0 ; }@@ -113,7 +111,6 @@ static inttest_debug (void) {rte_dump_stack (); -rte_dump_registers ();if (test_panic () <0 )return -1 ;if (test_exit () <0 )doc/guides/howto/debug_troubleshoot.rst +1
-1@@ -314,7 +314,7 @@ Custom worker function :numref:`dtg_distributor_worker`. * For high-performance execution logic ensure running it on correct NUMA and non-master core. - * Analyze run logic with ``rte_dump_stack``, ``rte_dump_registers`` and + * Analyze run logic with ``rte_dump_stack`` and ``rte_memdump`` for more insights. * Make use of objdump to ensure opcode is matching to the desired state.doc/guides/rel_notes/release_20_11.rst +2
-0@@ -184,6 +184,8 @@ ABI Changes Also, make sure to start the actual text at the margin. ======================================================= +* eal: Removed the not implemented function ``rte_dump_registers()``. + * ``ethdev`` changes * Following device operation function pointers movedlib/librte_eal/common/eal_common_debug.c +1
-16@@ -7,14 +7,6 @@#include <rte_log.h> #include <rte_debug.h> -/* not implemented */ -void -rte_dump_registers (void ) -{ -return ; -} - -/* call abort(), it will generate a coredump if enabled */ void __rte_panic (const char *funcname,const char *format, ...) {@@ -25,8 +17,7 @@ __rte_panic(const char *funcname, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap);rte_dump_stack (); -rte_dump_registers (); -abort (); +abort ();/* generate a coredump if enabled */ }/* @@ -46,14 +37,8 @@ rte_exit(int exit_code, const char *format, ...)rte_vlog (RTE_LOG_CRIT ,RTE_LOGTYPE_EAL , format, ap);va_end (ap); -#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if (rte_eal_cleanup () !=0 )RTE_LOG (CRIT ,EAL ,"EAL could not release all resources\n" );exit (exit_code); -#else -rte_dump_stack (); -rte_dump_registers (); -abort (); -#endif }lib/librte_eal/include/rte_debug.h +0
-7@@ -26,13 +26,6 @@ extern "C" {*/ void rte_dump_stack (void ); -/** -* Dump the registers of the calling core to the console. -* -* Note: Not implemented in a userapp environment; use gdb instead. -*/ -void rte_dump_registers (void ); -/** * Provide notification of a critical non-recoverable error and terminate * execution abnormally. lib/librte_eal/rte_eal_version.map +0
-2@@ -38,7 +38,6 @@ DPDK_21 { rte_devargs_remove; rte_devargs_type_count; rte_dump_physmem_layout; - rte_dump_registers; rte_dump_stack; rte_dump_tailq; rte_eal_alarm_cancel; --
Quoted 2 lines
2.28.0
Signature · 1 line
David Marchand
David Marchand
Acked-by Bruce Richardson Acked-by Konstantin Ananyev Acked-by Kevin Traynor Acked-by Ray Kinsella Acked-by on v2 1/1Quoted 7 lines · Thomas Monjalon
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.Signed-off-by Thomas Monjalon <[email protected]>
TB acks:
"Normal" acks:
Quoted 5 lines
---
The deprecation notice for this removal has been missed. I assume it would not hurt anybody to remove this useless function from DPDK 20.11. Asking the Technical Board for confirmation.
---
We have 3 acks from the TB.
I think this is enough, as we had neither comment nor objection against this series.
Any last objection?
Signature · 1 line
David Marchand
Quoted 7 lines · David Marchand
Quoted 6 lines · Thomas Monjalon
The option
RTE_EAL_ALWAYS_PANIC_ON_ERRORwas off by default, and not customizable with meson. It is completely removed.The function
rte_dump_registersis a trace of the bare metal support era, and was not supported in userland. It is completely removed.
Quoted 7 lines
Quoted 1 line
Signed-off-by Thomas Monjalon <[email protected]>Acked-by Ray Kinsella <[email protected]>Acked-by Bruce Richardson <[email protected]>Acked-by Kevin Traynor <[email protected]>Acked-by David Marchand <[email protected]>
No objection for the two weeks that this patch has been raised to TB attention. 3 acks from TB members.
I see no point in waiting more.
Applied.
Signature · 1 line
David Marchand