#include <assert.h>#include <fcntl.h>#include <inttypes.h>#include <math.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/syscall.h>#include <sys/types.h>#include <sys/ioctl.h>#include <sys/stat.h>#include <sys/time.h>#include <time.h>#include <unistd.h>#include <linux/perf_event.h>#include <signal.h>#include <string>#include <memory>#include <vector>
Go to the source code of this file.
Classes | |
| class | INTELLI::PerfEntry | 
| class | INTELLI::PerfTool | 
| pack the perf event in cpp style, remain safe if some std linux perf failed  More... | |
| class | INTELLI::PerfPair | 
| Combine PerfTool together with tags.  More... | |
| class | INTELLI::ThreadPerf | 
| The all-in-on perf class for thread.  More... | |
Namespaces | |
| INTELLI | |
Macros | |
| #define | PERF_ERROR(n) printf(n) | 
| #define | __LIBPERF_MAX_COUNTERS 32 | 
| #define | __LIBPERF_ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) | 
Typedefs | |
| typedef std::shared_ptr< PerfTool > | INTELLI::PerfToolPtr | 
| typedef enum INTELLI::perfTrace | INTELLI::perfIdx | 
Enumerations | |
| enum | INTELLI::perfTrace {  TRACE_RUNNING_TIME = -1 , COUNT_SW_CPU_CLOCK = 0 , COUNT_SW_TASK_CLOCK = 1 , COUNT_SW_CONTEXT_SWITCHES = 2 , COUNT_SW_CPU_MIGRATIONS = 3 , COUNT_SW_PAGE_FAULTS = 4 , COUNT_SW_PAGE_FAULTS_MIN = 5 , COUNT_SW_PAGE_FAULTS_MAJ = 6 , COUNT_HW_CPU_CYCLES = 7 , COUNT_HW_INSTRUCTIONS = 8 , COUNT_HW_CACHE_REFERENCES = 9 , COUNT_HW_CACHE_MISSES = 10 , COUNT_HW_BRANCH_INSTRUCTIONS = 11 , COUNT_HW_BRANCH_MISSES = 12 , COUNT_HW_BUS_CYCLES = 13 , COUNT_HW_CACHE_L1D_LOADS = 14 , COUNT_HW_CACHE_L1D_LOADS_MISSES = 15 , COUNT_HW_CACHE_L1D_STORES = 16 , COUNT_HW_CACHE_L1D_STORES_MISSES = 17 , COUNT_HW_CACHE_L1D_PREFETCHES = 18 , COUNT_HW_CACHE_L1I_LOADS = 19 , COUNT_HW_CACHE_L1I_LOADS_MISSES = 20 , COUNT_HW_CACHE_LL_LOADS = 21 , COUNT_HW_CACHE_LL_LOADS_MISSES = 22 , COUNT_HW_CACHE_LL_STORES = 23 , COUNT_HW_CACHE_LL_STORES_MISSES = 24 , COUNT_HW_CACHE_DTLB_LOADS = 25 , COUNT_HW_CACHE_DTLB_LOADS_MISSES = 26 , COUNT_HW_CACHE_DTLB_STORES = 27 , COUNT_HW_CACHE_DTLB_STORES_MISSES = 28 , COUNT_HW_CACHE_ITLB_LOADS = 29 , COUNT_HW_CACHE_ITLB_LOADS_MISSES = 30 , COUNT_HW_CACHE_BPU_LOADS = 31 , COUNT_HW_CACHE_BPU_LOADS_MISSES = 32 }  | 
| The valid idx for perf.  More... | |