6 #include <linux/types.h>
7 #include <linux/perf_event.h>
9 extern bool test_attr__enabled
;
10 void test_attr__ready(void);
11 void test_attr__init(void);
12 void test_attr__open(struct perf_event_attr
*attr
, pid_t pid
, int cpu
,
13 int fd
, int group_fd
, unsigned long flags
);
15 #define HAVE_ATTR_TEST
18 static inline unsigned long long rdclock(void)
22 clock_gettime(CLOCK_MONOTONIC
, &ts
);
23 return ts
.tv_sec
* 1000000000ULL + ts
.tv_nsec
;
26 #define MAX_NR_CPUS 1024
28 extern const char *input_name
;
29 extern bool perf_host
, perf_guest
;
30 extern const char perf_version_string
[];
32 void pthread__unblock_sigwinch(void);
34 #include "util/target.h"
46 bool sample_phys_addr
;
54 bool auxtrace_snapshot_mode
;
55 bool record_namespaces
;
56 bool record_switch_events
;
61 bool ignore_missing_thread
;
63 unsigned int mmap_pages
;
64 unsigned int auxtrace_mmap_pages
;
65 unsigned int user_freq
;
70 size_t auxtrace_snapshot_size
;
71 const char *auxtrace_snapshot_opts
;
72 bool sample_transaction
;
73 unsigned initial_delay
;
76 unsigned int proc_map_timeout
;
80 extern const char * const *record_usage
;
81 extern struct option
*record_options
;