Linux Perf
header.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <api/fs/fs.h>
#include "header.h"
Include dependency graph for header.c:

Go to the source code of this file.

Macros

#define MIDR   "/regs/identification/midr_el1"
 
#define MIDR_SIZE   19
 
#define MIDR_REVISION_MASK   0xf
 
#define MIDR_VARIANT_SHIFT   20
 
#define MIDR_VARIANT_MASK   (0xf << MIDR_VARIANT_SHIFT)
 

Functions

char * get_cpuid_str (struct perf_pmu *pmu)
 

Macro Definition Documentation

◆ MIDR

#define MIDR   "/regs/identification/midr_el1"

Definition at line 6 of file header.c.

◆ MIDR_REVISION_MASK

#define MIDR_REVISION_MASK   0xf

Definition at line 8 of file header.c.

◆ MIDR_SIZE

#define MIDR_SIZE   19

Definition at line 7 of file header.c.

◆ MIDR_VARIANT_MASK

#define MIDR_VARIANT_MASK   (0xf << MIDR_VARIANT_SHIFT)

Definition at line 10 of file header.c.

◆ MIDR_VARIANT_SHIFT

#define MIDR_VARIANT_SHIFT   20

Definition at line 9 of file header.c.

Function Documentation

◆ get_cpuid_str()

char* get_cpuid_str ( struct perf_pmu pmu)

Definition at line 12 of file header.c.

Here is the call graph for this function: