qos_debug.c File Reference

#include "qos_debug.h"

Go to the source code of this file.

Functions

char * qos_strerror (qos_rv err)
 Convert a QOS_E_* error code into a string.
void qos_dump_stack (void)

Variables

static char * qos_errors []
qos_rv qos_err = QOS_OK
atomic_t qos_log_msg_id = ATOMIC_INIT(0)
 Logging message identifier number, used to detect loss of messages.
int indent_lev = 0
 Indentation level when logging (currently uncorrect w.r.t.
char * func_names [MAX_INDENT_LEVEL]

Function Documentation

void qos_dump_stack ( void   ) 

Definition at line 43 of file qos_debug.c.

References func_names, indent_lev, and qos_log_crit.

char* qos_strerror ( qos_rv  err  ) 

Convert a QOS_E_* error code into a string.

Returns a pointer to a statically allocated string with a human readable description of the error coded into the err parameter.

Definition at line 29 of file qos_debug.c.

References qos_errors, qos_log_err, QOS_OK, and qos_rv_int.

Referenced by device_ioctl(), qos_func_define(), qres_cleanup_module(), qres_get_appr_budget(), qres_get_curr_budget(), qres_get_deadline(), qres_get_exec_time(), qres_get_next_budget(), qres_get_weight(), qres_gw_ks(), qres_init_module(), qres_set_bandwidth(), qres_set_weight(), qsup_cleanup_module(), qsup_create_server(), qsup_device_ioctl(), qsup_init_module(), and rres_init_server().


Variable Documentation

char* func_names[MAX_INDENT_LEVEL]

Definition at line 27 of file qos_debug.c.

Referenced by qos_dump_stack().

int indent_lev = 0

Indentation level when logging (currently uncorrect w.r.t.

This is used to highlight run-time nesting level of functions logging messages, through appropriate indentation.

concurrent kernel sections)

Definition at line 25 of file qos_debug.c.

Referenced by qos_dump_stack().

qos_rv qos_err = QOS_OK

Definition at line 18 of file qos_debug.c.

char* qos_errors[] [static]
Initial value:
 {
  "Unspecified error",
  "Insufficient memory",
  "Invalid parameter(s)",
  "Unauthorized",
  "Unimplemented",
  "Missing component",
  "Inconsistent state",
  "System overload",
  "Internal error: report to authors, please",
  "Not found",
  "Full container",
  "Empty container"
}

Definition at line 3 of file qos_debug.c.

Referenced by qos_strerror().

atomic_t qos_log_msg_id = ATOMIC_INIT(0)

Logging message identifier number, used to detect loss of messages.

This is used to detect loss of messages.

Definition at line 21 of file qos_debug.c.

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3