Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
color.c File Reference
#include <linux/kernel.h>
#include "cache.h"
#include "color.h"

Go to the source code of this file.

Functions

void color_parse (const char *value, const char *var, char *dst)
 
void color_parse_mem (const char *value, int value_len, const char *var, char *dst)
 
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)
 
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_fprintf_ln (FILE *fp, const char *color, const char *fmt,...)
 
int color_fwrite_lines (FILE *fp, const char *color, size_t count, const char *buf)
 
const charget_percent_color (double percent)
 
int percent_color_fprintf (FILE *fp, const char *fmt, double percent)
 
int percent_color_snprintf (char *bf, size_t size, const char *fmt, double percent)
 

Variables

int perf_use_color_default = -1
 

Function Documentation

int color_fprintf ( FILE *  fp,
const char color,
const char fmt,
  ... 
)

Definition at line 243 of file color.c.

int color_fprintf_ln ( FILE *  fp,
const char color,
const char fmt,
  ... 
)

Definition at line 254 of file color.c.

int color_fwrite_lines ( FILE *  fp,
const char color,
size_t  count,
const char buf 
)

Definition at line 269 of file color.c.

void color_parse ( const char value,
const char var,
char dst 
)

Definition at line 43 of file color.c.

void color_parse_mem ( const char value,
int  value_len,
const char var,
char dst 
)

Definition at line 48 of file color.c.

int color_snprintf ( char bf,
size_t  size,
const char color,
const char fmt,
  ... 
)

Definition at line 231 of file color.c.

int color_vfprintf ( FILE *  fp,
const char color,
const char fmt,
va_list  args 
)

Definition at line 226 of file color.c.

int color_vsnprintf ( char bf,
size_t  size,
const char color,
const char fmt,
va_list  args 
)

Definition at line 220 of file color.c.

const char* get_percent_color ( double  percent)

Definition at line 292 of file color.c.

int percent_color_fprintf ( FILE *  fp,
const char fmt,
double  percent 
)

Definition at line 310 of file color.c.

int percent_color_snprintf ( char bf,
size_t  size,
const char fmt,
double  percent 
)

Definition at line 321 of file color.c.

int perf_color_default_config ( const char var,
const char value,
void cb 
)

Definition at line 160 of file color.c.

int perf_config_colorbool ( const char var,
const char value,
int  stdout_is_tty 
)

Definition at line 133 of file color.c.

Variable Documentation

int perf_use_color_default = -1

Definition at line 5 of file color.c.