Linux Perf
header.c File Reference
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "../../util/header.h"
#include "../../util/util.h"
Include dependency graph for header.c:

Go to the source code of this file.

Macros

#define SYSINFO_MANU   "Manufacturer:"
 
#define SYSINFO_TYPE   "Type:"
 
#define SYSINFO_MODEL   "Model:"
 
#define SRVLVL_CPUMF   "CPU-MF:"
 
#define SRVLVL_VERSION   "version="
 
#define SRVLVL_AUTHORIZATION   "authorization="
 
#define SYSINFO   "/proc/sysinfo"
 
#define SRVLVL   "/proc/service_levels"
 

Functions

int get_cpuid (char *buffer, size_t sz)
 
char * get_cpuid_str (struct perf_pmu *pmu __maybe_unused)
 

Macro Definition Documentation

◆ SRVLVL

#define SRVLVL   "/proc/service_levels"

Definition at line 29 of file header.c.

◆ SRVLVL_AUTHORIZATION

#define SRVLVL_AUTHORIZATION   "authorization="

Definition at line 27 of file header.c.

◆ SRVLVL_CPUMF

#define SRVLVL_CPUMF   "CPU-MF:"

Definition at line 25 of file header.c.

◆ SRVLVL_VERSION

#define SRVLVL_VERSION   "version="

Definition at line 26 of file header.c.

◆ SYSINFO

#define SYSINFO   "/proc/sysinfo"

Definition at line 28 of file header.c.

◆ SYSINFO_MANU

#define SYSINFO_MANU   "Manufacturer:"

Definition at line 22 of file header.c.

◆ SYSINFO_MODEL

#define SYSINFO_MODEL   "Model:"

Definition at line 24 of file header.c.

◆ SYSINFO_TYPE

#define SYSINFO_TYPE   "Type:"

Definition at line 23 of file header.c.

Function Documentation

◆ get_cpuid()

int get_cpuid ( char *  buffer,
size_t  sz 
)

Definition at line 31 of file header.c.

Here is the call graph for this function:

◆ get_cpuid_str()

char* get_cpuid_str ( struct perf_pmu *pmu  __maybe_unused)

Definition at line 141 of file header.c.

Here is the call graph for this function: