6 #include <linux/types.h>
7 #include <linux/perf_event.h>
9 extern bool test_attr__enabled
;
10 void test_attr__init(void);
11 void test_attr__open(struct perf_event_attr
*attr
, pid_t pid
, int cpu
,
12 int fd
, int group_fd
, unsigned long flags
);
14 #define HAVE_ATTR_TEST
18 # define NSEC_PER_SEC 1000000000ULL
21 # define NSEC_PER_USEC 1000ULL
24 static inline unsigned long long rdclock(void)
28 clock_gettime(CLOCK_MONOTONIC
, &ts
);
29 return ts
.tv_sec
* 1000000000ULL + ts
.tv_nsec
;
32 #define MAX_NR_CPUS 1024
34 extern const char *input_name
;
35 extern bool perf_host
, perf_guest
;
36 extern const char perf_version_string
[];
38 void pthread__unblock_sigwinch(void);
40 #include "util/target.h"
55 bool sample_intr_regs
;
58 unsigned int mmap_pages
;
59 unsigned int user_freq
;
63 bool sample_transaction
;
64 unsigned initial_delay
;
70 extern const char * const *record_usage
;
71 extern struct option
*record_options
;