#ifndef _PERF_PERF_H #define _PERF_PERF_H #include <time.h> #include <stdbool.h> #include <linux/types.h> #include <linux/perf_event.h> extern bool test_attr__enabled; void test_attr__init(void); void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, int fd, int group_fd, unsigned long flags); #define HAVE_ATTR_TEST #include "perf-sys.h" #ifndef NSEC_PER_SEC # define NSEC_PER_SEC 1000000000ULL #endif #ifndef NSEC_PER_USEC # define NSEC_PER_USEC 1000ULL #endif
static inline unsigned long long rdclock(void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return ts.tv_sec * 1000000000ULL + ts.tv_nsec; }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
thomas gleixner | thomas gleixner | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
arnaldo carvalho de melo | arnaldo carvalho de melo | 55 | 19.93% | 8 | 21.62% |
thomas gleixner | thomas gleixner | 54 | 19.57% | 2 | 5.41% |
jiri olsa | jiri olsa | 48 | 17.39% | 2 | 5.41% |
adrian hunter | adrian hunter | 27 | 9.78% | 5 | 13.51% |
namhyung kim | namhyung kim | 25 | 9.06% | 3 | 8.11% |
peter zijlstra | peter zijlstra | 13 | 4.71% | 2 | 5.41% |
andi kleen | andi kleen | 12 | 4.35% | 4 | 10.81% |
stephane eranian | stephane eranian | 10 | 3.62% | 3 | 8.11% |
david ahern | david ahern | 10 | 3.62% | 2 | 5.41% |
feng tang | feng tang | 6 | 2.17% | 1 | 2.70% |
yanmin zhang | yanmin zhang | 5 | 1.81% | 1 | 2.70% |
kan liang | kan liang | 4 | 1.45% | 1 | 2.70% |
andrey vagin | andrey vagin | 3 | 1.09% | 1 | 2.70% |
roberto agostino vitillo | roberto agostino vitillo | 2 | 0.72% | 1 | 2.70% |
david howells | david howells | 2 | 0.72% | 1 | 2.70% |
Total | 276 | 100.00% | 37 | 100.00% |