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
17 static inline unsigned long long rdclock(void)
21 clock_gettime(CLOCK_MONOTONIC
, &ts
);
22 return ts
.tv_sec
* 1000000000ULL + ts
.tv_nsec
;
25 #define MAX_NR_CPUS 1024
27 extern const char *input_name
;
28 extern bool perf_host
, perf_guest
;
29 extern const char perf_version_string
[];
31 void pthread__unblock_sigwinch(void);
33 #include "util/target.h"
52 bool auxtrace_snapshot_mode
;
53 bool record_switch_events
;
58 bool ignore_missing_thread
;
60 unsigned int mmap_pages
;
61 unsigned int auxtrace_mmap_pages
;
62 unsigned int user_freq
;
67 size_t auxtrace_snapshot_size
;
68 const char *auxtrace_snapshot_opts
;
69 bool sample_transaction
;
70 unsigned initial_delay
;
73 unsigned int proc_map_timeout
;
77 extern const char * const *record_usage
;
78 extern struct option
*record_options
;