1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/types.h>
8 #include <linux/perf_event.h>
10 extern bool test_attr__enabled
;
11 void test_attr__ready(void);
12 void test_attr__init(void);
13 void test_attr__open(struct perf_event_attr
*attr
, pid_t pid
, int cpu
,
14 int fd
, int group_fd
, unsigned long flags
);
16 #define HAVE_ATTR_TEST
19 static inline unsigned long long rdclock(void)
23 clock_gettime(CLOCK_MONOTONIC
, &ts
);
24 return ts
.tv_sec
* 1000000000ULL + ts
.tv_nsec
;
27 #define MAX_NR_CPUS 1024
29 extern const char *input_name
;
30 extern bool perf_host
, perf_guest
;
31 extern const char perf_version_string
[];
33 void pthread__unblock_sigwinch(void);
35 #include "util/target.h"
47 bool sample_phys_addr
;
56 bool auxtrace_snapshot_mode
;
57 bool record_namespaces
;
58 bool record_switch_events
;
63 bool ignore_missing_thread
;
65 unsigned int mmap_pages
;
66 unsigned int auxtrace_mmap_pages
;
67 unsigned int user_freq
;
73 size_t auxtrace_snapshot_size
;
74 const char *auxtrace_snapshot_opts
;
75 bool sample_transaction
;
76 unsigned initial_delay
;
79 unsigned int proc_map_timeout
;
83 extern const char * const *record_usage
;
84 extern struct option
*record_options
;