#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <linux/stringify.h>
#include "header.h"
#include "util.h"
Go to the source code of this file.
|
#define | mfspr(rn) |
|
#define | SPRN_PVR 0x11F /* Processor Version Register */ |
|
#define | PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ |
|
#define | PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ |
|
◆ mfspr
Value:({unsigned long rval; \
asm volatile("mfspr %0," __stringify(rn) \
: "=r" (rval)); rval; })
Definition at line 11 of file header.c.
◆ PVR_REV
#define PVR_REV |
( |
|
pvr | ) |
(((pvr) >> 0) & 0xFFFF) /* Revison field */ |
◆ PVR_VER
#define PVR_VER |
( |
|
pvr | ) |
(((pvr) >> 16) & 0xFFFF) /* Version field */ |
◆ SPRN_PVR
#define SPRN_PVR 0x11F /* Processor Version Register */ |
◆ get_cpuid()
int get_cpuid |
( |
char * |
buffer, |
|
|
size_t |
sz |
|
) |
| |
◆ get_cpuid_str()
char* get_cpuid_str |
( |
struct perf_pmu *pmu |
__maybe_unused | ) |
|