Linux Perf
print_binary.h File Reference
#include <stddef.h>
#include <stdio.h>
Include dependency graph for print_binary.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef int(* binary__fprintf_t) (enum binary_printer_ops op, unsigned int val, void *extra, FILE *fp)
 

Enumerations

enum  binary_printer_ops {
  BINARY_PRINT_DATA_BEGIN, BINARY_PRINT_LINE_BEGIN, BINARY_PRINT_ADDR, BINARY_PRINT_NUM_DATA,
  BINARY_PRINT_NUM_PAD, BINARY_PRINT_SEP, BINARY_PRINT_CHAR_DATA, BINARY_PRINT_CHAR_PAD,
  BINARY_PRINT_LINE_END, BINARY_PRINT_DATA_END
}
 

Functions

int binary__fprintf (unsigned char *data, size_t len, size_t bytes_per_line, binary__fprintf_t printer, void *extra, FILE *fp)
 
static void print_binary (unsigned char *data, size_t len, size_t bytes_per_line, binary__fprintf_t printer, void *extra)
 
int is_printable_array (char *p, unsigned int len)
 

Typedef Documentation

◆ binary__fprintf_t

typedef int(* binary__fprintf_t) (enum binary_printer_ops op, unsigned int val, void *extra, FILE *fp)

Definition at line 21 of file print_binary.h.

Enumeration Type Documentation

◆ binary_printer_ops

Enumerator
BINARY_PRINT_DATA_BEGIN 
BINARY_PRINT_LINE_BEGIN 
BINARY_PRINT_ADDR 
BINARY_PRINT_NUM_DATA 
BINARY_PRINT_NUM_PAD 
BINARY_PRINT_SEP 
BINARY_PRINT_CHAR_DATA 
BINARY_PRINT_CHAR_PAD 
BINARY_PRINT_LINE_END 
BINARY_PRINT_DATA_END 

Definition at line 8 of file print_binary.h.

Function Documentation

◆ binary__fprintf()

int binary__fprintf ( unsigned char *  data,
size_t  len,
size_t  bytes_per_line,
binary__fprintf_t  printer,
void *  extra,
FILE *  fp 
)

Definition at line 6 of file print_binary.c.

◆ is_printable_array()

int is_printable_array ( char *  p,
unsigned int  len 
)

Definition at line 44 of file print_binary.c.

◆ print_binary()

static void print_binary ( unsigned char *  data,
size_t  len,
size_t  bytes_per_line,
binary__fprintf_t  printer,
void *  extra 
)
inlinestatic

Definition at line 28 of file print_binary.h.

Here is the call graph for this function: