Root/
1 | #ifndef _PERF_PERF_H |
2 | #define _PERF_PERF_H |
3 | |
4 | #include <time.h> |
5 | #include <stdbool.h> |
6 | #include <linux/types.h> |
7 | #include <linux/perf_event.h> |
8 | |
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); |
13 | |
14 | #define HAVE_ATTR_TEST |
15 | #include "perf-sys.h" |
16 | |
17 | #ifndef NSEC_PER_SEC |
18 | # define NSEC_PER_SEC 1000000000ULL |
19 | #endif |
20 | #ifndef NSEC_PER_USEC |
21 | # define NSEC_PER_USEC 1000ULL |
22 | #endif |
23 | |
24 | static inline unsigned long long rdclock(void) |
25 | { |
26 | struct timespec ts; |
27 | |
28 | clock_gettime(CLOCK_MONOTONIC, &ts); |
29 | return ts.tv_sec * 1000000000ULL + ts.tv_nsec; |
30 | } |
31 | |
32 | #define MAX_NR_CPUS 256 |
33 | |
34 | extern const char *input_name; |
35 | extern bool perf_host, perf_guest; |
36 | extern const char perf_version_string[]; |
37 | |
38 | void pthread__unblock_sigwinch(void); |
39 | |
40 | #include "util/target.h" |
41 | |
42 | struct record_opts { |
43 | struct target target; |
44 | int call_graph; |
45 | bool call_graph_enabled; |
46 | bool group; |
47 | bool inherit_stat; |
48 | bool no_buffering; |
49 | bool no_inherit; |
50 | bool no_inherit_set; |
51 | bool no_samples; |
52 | bool raw_samples; |
53 | bool sample_address; |
54 | bool sample_weight; |
55 | bool sample_time; |
56 | bool period; |
57 | unsigned int freq; |
58 | unsigned int mmap_pages; |
59 | unsigned int user_freq; |
60 | u64 branch_stack; |
61 | u64 default_interval; |
62 | u64 user_interval; |
63 | u16 stack_dump_size; |
64 | bool sample_transaction; |
65 | unsigned initial_delay; |
66 | }; |
67 | |
68 | #endif |
69 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9