Linux Perf
top.c File Reference
#include "cpumap.h"
#include "event.h"
#include "evlist.h"
#include "evsel.h"
#include "parse-events.h"
#include "symbol.h"
#include "top.h"
#include <inttypes.h>
Include dependency graph for top.c:

Go to the source code of this file.

Macros

#define SNPRINTF(buf, size, fmt, args...)
 

Functions

size_t perf_top__header_snprintf (struct perf_top *top, char *bf, size_t size)
 
void perf_top__reset_sample_counters (struct perf_top *top)
 

Macro Definition Documentation

◆ SNPRINTF

#define SNPRINTF (   buf,
  size,
  fmt,
  args... 
)
Value:
({ \
size_t r = snprintf(buf, size, fmt, ## args); \
r > size ? size : r; \
})
size_t size
Definition: evsel.c:60
const char * fmt
Definition: dso.c:193

Definition at line 18 of file top.c.

Function Documentation

◆ perf_top__header_snprintf()

size_t perf_top__header_snprintf ( struct perf_top top,
char *  bf,
size_t  size 
)

Definition at line 24 of file top.c.

Here is the call graph for this function:

◆ perf_top__reset_sample_counters()

void perf_top__reset_sample_counters ( struct perf_top top)

Definition at line 112 of file top.c.