DPDK  16.11.11
Macros | Functions
rte_debug.h File Reference
#include "rte_log.h"
#include "rte_branch_prediction.h"

Go to the source code of this file.

Macros

#define rte_panic(...)   rte_panic_(__func__, __VA_ARGS__, "dummy")
 

Functions

void rte_dump_stack (void)
 
void rte_dump_registers (void)
 

Detailed Description

Debug Functions in RTE

This file defines a generic API for debug operations. Part of the implementation is architecture-specific.

Definition in file rte_debug.h.

Macro Definition Documentation

#define rte_panic (   ...)    rte_panic_(__func__, __VA_ARGS__, "dummy")

Provide notification of a critical non-recoverable error and terminate execution abnormally.

Display the format string and its expanded arguments (printf-like).

In a linuxapp environment, this function dumps the stack and calls abort() resulting in a core dump if enabled.

The function never returns.

Parameters
...The format string, followed by the variable list of arguments.
Examples:
cmdline/main.c, distributor/main.c, dpdk_qat/main.c, helloworld/main.c, ip_fragmentation/main.c, ip_pipeline/config_parse.c, ip_pipeline/init.c, ip_pipeline/pipeline/pipeline_master_be.c, ip_reassembly/main.c, l2fwd-jobstats/main.c, link_status_interrupt/main.c, load_balancer/config.c, load_balancer/init.c, multi_process/l2fwd_fork/flib.c, multi_process/simple_mp/mp_commands.c, performance-thread/l3fwd-thread/main.c, qos_sched/main.c, quota_watermark/qw/main.c, timer/main.c, vhost_xen/xenstore_parse.c, vm_power_manager/guest_cli/main.c, and vm_power_manager/main.c.

Definition at line 79 of file rte_debug.h.

Function Documentation

void rte_dump_stack ( void  )

Dump the stack of the calling core to the console.

void rte_dump_registers ( void  )

Dump the registers of the calling core to the console.

Note: Not implemented in a userapp environment; use gdb instead.