Linux Perf
mem-events.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <linux/types.h>
#include "stat.h"
Include dependency graph for mem-events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  perf_mem_event
 
struct  c2c_stats
 

Enumerations

enum  { PERF_MEM_EVENTS__LOAD, PERF_MEM_EVENTS__STORE, PERF_MEM_EVENTS__MAX }
 

Functions

int perf_mem_events__parse (const char *str)
 
int perf_mem_events__init (void)
 
char * perf_mem_events__name (int i)
 
int perf_mem__tlb_scnprintf (char *out, size_t sz, struct mem_info *mem_info)
 
int perf_mem__lvl_scnprintf (char *out, size_t sz, struct mem_info *mem_info)
 
int perf_mem__snp_scnprintf (char *out, size_t sz, struct mem_info *mem_info)
 
int perf_mem__lck_scnprintf (char *out, size_t sz, struct mem_info *mem_info)
 
int perf_script__meminfo_scnprintf (char *bf, size_t size, struct mem_info *mem_info)
 
int c2c_decode_stats (struct c2c_stats *stats, struct mem_info *mi)
 
void c2c_add_stats (struct c2c_stats *stats, struct c2c_stats *add)
 

Variables

struct perf_mem_event perf_mem_events [PERF_MEM_EVENTS__MAX]
 
unsigned int perf_mem_events__loads_ldlat
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PERF_MEM_EVENTS__LOAD 
PERF_MEM_EVENTS__STORE 
PERF_MEM_EVENTS__MAX 

Definition at line 19 of file mem-events.h.

Function Documentation

◆ c2c_add_stats()

void c2c_add_stats ( struct c2c_stats stats,
struct c2c_stats add 
)

Definition at line 423 of file mem-events.c.

◆ c2c_decode_stats()

int c2c_decode_stats ( struct c2c_stats stats,
struct mem_info mi 
)

Definition at line 312 of file mem-events.c.

◆ perf_mem__lck_scnprintf()

int perf_mem__lck_scnprintf ( char *  out,
size_t  sz,
struct mem_info mem_info 
)

Definition at line 279 of file mem-events.c.

◆ perf_mem__lvl_scnprintf()

int perf_mem__lvl_scnprintf ( char *  out,
size_t  sz,
struct mem_info mem_info 
)

Definition at line 178 of file mem-events.c.

◆ perf_mem__snp_scnprintf()

int perf_mem__snp_scnprintf ( char *  out,
size_t  sz,
struct mem_info mem_info 
)

Definition at line 244 of file mem-events.c.

◆ perf_mem__tlb_scnprintf()

int perf_mem__tlb_scnprintf ( char *  out,
size_t  sz,
struct mem_info mem_info 
)

Definition at line 116 of file mem-events.c.

◆ perf_mem_events__init()

int perf_mem_events__init ( void  )

Definition at line 82 of file mem-events.c.

◆ perf_mem_events__name()

char* perf_mem_events__name ( int  i)

Definition at line 31 of file mem-events.c.

◆ perf_mem_events__parse()

int perf_mem_events__parse ( const char *  str)

Definition at line 46 of file mem-events.c.

Here is the call graph for this function:

◆ perf_script__meminfo_scnprintf()

int perf_script__meminfo_scnprintf ( char *  bf,
size_t  size,
struct mem_info mem_info 
)

Definition at line 297 of file mem-events.c.

Here is the call graph for this function:

Variable Documentation

◆ perf_mem_events

struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX]

Definition at line 20 of file mem-events.c.

◆ perf_mem_events__loads_ldlat

unsigned int perf_mem_events__loads_ldlat

Definition at line 16 of file mem-events.c.