Linux Perf
|
#include <linux/kernel.h>
#include "cache.h"
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include "color.h"
#include <math.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
int | perf_config_colorbool (const char *var, const char *value, int stdout_is_tty) |
int | perf_color_default_config (const char *var, const char *value, void *cb __maybe_unused) |
static int | __color_vsnprintf (char *bf, size_t size, const char *color, const char *fmt, va_list args, const char *trail) |
static int | __color_vfprintf (FILE *fp, const char *color, const char *fmt, va_list args) |
int | color_vsnprintf (char *bf, size_t size, const char *color, const char *fmt, va_list args) |
int | color_vfprintf (FILE *fp, const char *color, const char *fmt, va_list args) |
int | color_snprintf (char *bf, size_t size, const char *color, const char *fmt,...) |
int | color_fprintf (FILE *fp, const char *color, const char *fmt,...) |
int | color_fwrite_lines (FILE *fp, const char *color, size_t count, const char *buf) |
const char * | get_percent_color (double percent) |
int | percent_color_fprintf (FILE *fp, const char *fmt, double percent) |
int | value_color_snprintf (char *bf, size_t size, const char *fmt, double value) |
int | percent_color_snprintf (char *bf, size_t size, const char *fmt,...) |
int | percent_color_len_snprintf (char *bf, size_t size, const char *fmt,...) |
Variables | |
int | perf_use_color_default = -1 |
|
static |
|
static |
int color_fprintf | ( | FILE * | fp, |
const char * | color, | ||
const char * | fmt, | ||
... | |||
) |
int color_fwrite_lines | ( | FILE * | fp, |
const char * | color, | ||
size_t | count, | ||
const char * | buf | ||
) |
int color_snprintf | ( | char * | bf, |
size_t | size, | ||
const char * | color, | ||
const char * | fmt, | ||
... | |||
) |
int color_vfprintf | ( | FILE * | fp, |
const char * | color, | ||
const char * | fmt, | ||
va_list | args | ||
) |
int color_vsnprintf | ( | char * | bf, |
size_t | size, | ||
const char * | color, | ||
const char * | fmt, | ||
va_list | args | ||
) |
int percent_color_fprintf | ( | FILE * | fp, |
const char * | fmt, | ||
double | percent | ||
) |
int percent_color_len_snprintf | ( | char * | bf, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
int percent_color_snprintf | ( | char * | bf, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
int perf_color_default_config | ( | const char * | var, |
const char * | value, | ||
void *cb | __maybe_unused | ||
) |
int perf_config_colorbool | ( | const char * | var, |
const char * | value, | ||
int | stdout_is_tty | ||
) |
int value_color_snprintf | ( | char * | bf, |
size_t | size, | ||
const char * | fmt, | ||
double | value | ||
) |