FFmpeg
|
#include "avassert.h"
#include "macos_kperf.h"
#include "thread.h"
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
Go to the source code of this file.
Macros | |
#define | KPERF_LIST |
#define | F(ret, name, ...) |
#define | CFGWORD_EL0A32EN_MASK (0x10000) |
#define | CFGWORD_EL0A64EN_MASK (0x20000) |
#define | CFGWORD_EL1EN_MASK (0x40000) |
#define | CFGWORD_EL3EN_MASK (0x80000) |
#define | CFGWORD_ALLMODES_MASK (0xf0000) |
#define | CPMU_NONE 0 |
#define | CPMU_CORE_CYCLE 0x02 |
#define | CPMU_INST_A64 0x8c |
#define | CPMU_INST_BRANCH 0x8d |
#define | CPMU_SYNC_DC_LOAD_MISS 0xbf |
#define | CPMU_SYNC_DC_STORE_MISS 0xc0 |
#define | CPMU_SYNC_DTLB_MISS 0xc1 |
#define | CPMU_SYNC_ST_HIT_YNGR_LD 0xc4 |
#define | CPMU_SYNC_BR_ANY_MISP 0xcb |
#define | CPMU_FED_IC_MISS_DEM 0xd3 |
#define | CPMU_FED_ITLB_MISS 0xd4 |
#define | KPC_CLASS_FIXED_MASK (1 << 0) |
#define | KPC_CLASS_CONFIGURABLE_MASK (1 << 1) |
#define | KPC_CLASS_POWER_MASK (1 << 2) |
#define | KPC_CLASS_RAWPMU_MASK (1 << 3) |
#define | KPC_MAX_COUNTERS 32 |
#define | CONFIG_COUNT 8 |
#define | KPC_MASK (KPC_CLASS_CONFIGURABLE_MASK | KPC_CLASS_FIXED_MASK) |
#define | F(ret, name, ...) av_assert0(name = (name##proc *)(dlsym(kperf, #name))); |
Functions | |
static void | kperf_init (void) |
void | ff_kperf_init (void) |
uint64_t | ff_kperf_cycles (void) |
#define KPERF_LIST |
Definition at line 27 of file macos_kperf.c.
#define CFGWORD_EL0A32EN_MASK (0x10000) |
Definition at line 47 of file macos_kperf.c.
#define CFGWORD_EL0A64EN_MASK (0x20000) |
Definition at line 48 of file macos_kperf.c.
#define CFGWORD_EL1EN_MASK (0x40000) |
Definition at line 49 of file macos_kperf.c.
#define CFGWORD_EL3EN_MASK (0x80000) |
Definition at line 50 of file macos_kperf.c.
#define CFGWORD_ALLMODES_MASK (0xf0000) |
Definition at line 51 of file macos_kperf.c.
#define CPMU_NONE 0 |
Definition at line 53 of file macos_kperf.c.
#define CPMU_CORE_CYCLE 0x02 |
Definition at line 54 of file macos_kperf.c.
#define CPMU_INST_A64 0x8c |
Definition at line 55 of file macos_kperf.c.
#define CPMU_INST_BRANCH 0x8d |
Definition at line 56 of file macos_kperf.c.
#define CPMU_SYNC_DC_LOAD_MISS 0xbf |
Definition at line 57 of file macos_kperf.c.
#define CPMU_SYNC_DC_STORE_MISS 0xc0 |
Definition at line 58 of file macos_kperf.c.
#define CPMU_SYNC_DTLB_MISS 0xc1 |
Definition at line 59 of file macos_kperf.c.
#define CPMU_SYNC_ST_HIT_YNGR_LD 0xc4 |
Definition at line 60 of file macos_kperf.c.
#define CPMU_SYNC_BR_ANY_MISP 0xcb |
Definition at line 61 of file macos_kperf.c.
#define CPMU_FED_IC_MISS_DEM 0xd3 |
Definition at line 62 of file macos_kperf.c.
#define CPMU_FED_ITLB_MISS 0xd4 |
Definition at line 63 of file macos_kperf.c.
#define KPC_CLASS_FIXED_MASK (1 << 0) |
Definition at line 65 of file macos_kperf.c.
#define KPC_CLASS_CONFIGURABLE_MASK (1 << 1) |
Definition at line 66 of file macos_kperf.c.
#define KPC_CLASS_POWER_MASK (1 << 2) |
Definition at line 67 of file macos_kperf.c.
#define KPC_CLASS_RAWPMU_MASK (1 << 3) |
Definition at line 68 of file macos_kperf.c.
#define KPC_MAX_COUNTERS 32 |
Definition at line 70 of file macos_kperf.c.
#define CONFIG_COUNT 8 |
Definition at line 71 of file macos_kperf.c.
#define KPC_MASK (KPC_CLASS_CONFIGURABLE_MASK | KPC_CLASS_FIXED_MASK) |
Definition at line 72 of file macos_kperf.c.
Definition at line 41 of file macos_kperf.c.
|
static |
Definition at line 74 of file macos_kperf.c.
Referenced by ff_kperf_init().
void ff_kperf_init | ( | void | ) |
Definition at line 102 of file macos_kperf.c.
uint64_t ff_kperf_cycles | ( | void | ) |
Definition at line 108 of file macos_kperf.c.