#include "../perf.h"
#include <inttypes.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/wait.h>
#include <api/debug.h>
#include <linux/time64.h>
#include "cache.h"
#include "color.h"
#include "event.h"
#include "debug.h"
#include "print_binary.h"
#include "util.h"
#include "target.h"
#include "sane_ctype.h"
Go to the source code of this file.
|
int | veprintf (int level, int var, const char *fmt, va_list args) |
|
int | eprintf (int level, int var, const char *fmt,...) |
|
static int | veprintf_time (u64 t, const char *fmt, va_list args) |
|
int | eprintf_time (int level, int var, u64 t, const char *fmt,...) |
|
void | pr_stat (const char *fmt,...) |
|
int | dump_printf (const char *fmt,...) |
|
static int | trace_event_printer (enum binary_printer_ops op, unsigned int val, void *extra, FILE *fp) |
|
void | trace_event (union perf_event *event) |
|
int | perf_debug_option (const char *str) |
|
int | perf_quiet_option (void) |
|
| DEBUG_WRAPPER (warning, 0) |
|
| DEBUG_WRAPPER (debug, 1) |
|
void | perf_debug_setup (void) |
|
void | dump_stack (void) |
|
void | sighandler_dump_stack (int sig) |
|
◆ DEBUG_WRAPPER
#define DEBUG_WRAPPER |
( |
|
__n, |
|
|
|
__l |
|
) |
| |
Value:static int pr_ ## __n ## _wrapper(
const char *
fmt, ...) \
{ \
int ret; \
\
va_end(args); \
return ret; \
}
int veprintf(int level, int var, const char *fmt, va_list args)
Definition at line 238 of file debug.c.
◆ DEBUG_WRAPPER() [1/2]
DEBUG_WRAPPER |
( |
warning |
, |
|
|
0 |
|
|
) |
| |
◆ DEBUG_WRAPPER() [2/2]
DEBUG_WRAPPER |
( |
debug |
, |
|
|
1 |
|
|
) |
| |
◆ dump_printf()
int dump_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ dump_stack()
◆ eprintf()
int eprintf |
( |
int |
level, |
|
|
int |
var, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ eprintf_time()
int eprintf_time |
( |
int |
level, |
|
|
int |
var, |
|
|
u64 |
t, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ perf_debug_option()
int perf_debug_option |
( |
const char * |
str | ) |
|
◆ perf_debug_setup()
void perf_debug_setup |
( |
void |
| ) |
|
◆ perf_quiet_option()
int perf_quiet_option |
( |
void |
| ) |
|
◆ pr_stat()
void pr_stat |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ sighandler_dump_stack()
void sighandler_dump_stack |
( |
int |
sig | ) |
|
◆ trace_event()
◆ trace_event_printer()
static int trace_event_printer |
( |
enum binary_printer_ops |
op, |
|
|
unsigned int |
val, |
|
|
void * |
extra, |
|
|
FILE * |
fp |
|
) |
| |
|
static |
◆ veprintf()
int veprintf |
( |
int |
level, |
|
|
int |
var, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
◆ veprintf_time()
static int veprintf_time |
( |
u64 |
t, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
|
static |
◆ debug_data_convert
◆ debug_ordered_events
◆ debug_variables
Initial value:= {
{ .name =
"verbose", .ptr = &
verbose },
{ .name = NULL, }
}
static int redirect_to_stderr
◆ dump_trace
◆ quiet
◆ redirect_to_stderr
◆ verbose