1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/types.h>
8 #include <linux/stddef.h>
9 #include <linux/perf_event.h>
11 extern bool test_attr__enabled
;
12 void test_attr__ready(void);
13 void test_attr__init(void);
14 void test_attr__open(struct perf_event_attr
*attr
, pid_t pid
, int cpu
,
15 int fd
, int group_fd
, unsigned long flags
);
17 #define HAVE_ATTR_TEST
20 static inline unsigned long long rdclock(void)
24 clock_gettime(CLOCK_MONOTONIC
, &ts
);
25 return ts
.tv_sec
* 1000000000ULL + ts
.tv_nsec
;
29 #define MAX_NR_CPUS 1024
32 extern const char *input_name
;
33 extern bool perf_host
, perf_guest
;
34 extern const char perf_version_string
[];
36 void pthread__unblock_sigwinch(void);
38 #include "util/target.h"
50 bool sample_phys_addr
;
59 bool auxtrace_snapshot_mode
;
60 bool record_namespaces
;
61 bool record_switch_events
;
66 bool ignore_missing_thread
;
71 unsigned int mmap_pages
;
72 unsigned int auxtrace_mmap_pages
;
73 unsigned int user_freq
;
79 size_t auxtrace_snapshot_size
;
80 const char *auxtrace_snapshot_opts
;
81 bool sample_transaction
;
82 unsigned initial_delay
;
91 PERF_AFFINITY_SYS
= 0,
98 extern const char * const *record_usage
;
99 extern struct option
*record_options
;
100 extern int version_verbose
;
102 int record__parse_freq(const struct option
*opt
, const char *str
, int unset
);