evsel.h (ef34eb4da3eb62a1511592adf7c76d74faca0b14) | evsel.h (5555ded44698ed82ffa3d8742ec2994f695127bc) |
---|---|
1#ifndef __PERF_EVSEL_H 2#define __PERF_EVSEL_H 1 3 4#include <linux/list.h> 5#include <stdbool.h> 6#include "../../../include/linux/perf_event.h" 7#include "types.h" 8#include "xyarray.h" --- 106 unchanged lines hidden (view full) --- 115int perf_evsel__open_per_cpu(struct perf_evsel *evsel, 116 struct cpu_map *cpus); 117int perf_evsel__open_per_thread(struct perf_evsel *evsel, 118 struct thread_map *threads); 119int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 120 struct thread_map *threads); 121void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads); 122 | 1#ifndef __PERF_EVSEL_H 2#define __PERF_EVSEL_H 1 3 4#include <linux/list.h> 5#include <stdbool.h> 6#include "../../../include/linux/perf_event.h" 7#include "types.h" 8#include "xyarray.h" --- 106 unchanged lines hidden (view full) --- 115int perf_evsel__open_per_cpu(struct perf_evsel *evsel, 116 struct cpu_map *cpus); 117int perf_evsel__open_per_thread(struct perf_evsel *evsel, 118 struct thread_map *threads); 119int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 120 struct thread_map *threads); 121void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads); 122 |
123struct perf_sample; 124 125char *perf_evsel__strval(struct perf_evsel *evsel, struct perf_sample *sample, 126 const char *name); 127u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample, 128 const char *name); 129 |
|
123#define perf_evsel__match(evsel, t, c) \ 124 (evsel->attr.type == PERF_TYPE_##t && \ 125 evsel->attr.config == PERF_COUNT_##c) 126 127static inline bool perf_evsel__match2(struct perf_evsel *e1, 128 struct perf_evsel *e2) 129{ 130 return (e1->attr.type == e2->attr.type) && --- 71 unchanged lines hidden --- | 130#define perf_evsel__match(evsel, t, c) \ 131 (evsel->attr.type == PERF_TYPE_##t && \ 132 evsel->attr.config == PERF_COUNT_##c) 133 134static inline bool perf_evsel__match2(struct perf_evsel *e1, 135 struct perf_evsel *e2) 136{ 137 return (e1->attr.type == e2->attr.type) && --- 71 unchanged lines hidden --- |