Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 1 | #ifndef _PERF_PERF_H |
| 2 | #define _PERF_PERF_H |
| 3 | |
David Howells | d2709c7 | 2012-11-19 22:21:03 +0000 | [diff] [blame] | 4 | #include <asm/unistd.h> |
| 5 | |
Vince Weaver | 11d1578 | 2009-07-08 17:46:14 -0400 | [diff] [blame] | 6 | #if defined(__i386__) |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 7 | #define mb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory") |
| 8 | #define wmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory") |
Vince Weaver | 11d1578 | 2009-07-08 17:46:14 -0400 | [diff] [blame] | 9 | #define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory") |
| 10 | #define cpu_relax() asm volatile("rep; nop" ::: "memory"); |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 11 | #define CPUINFO_PROC "model name" |
Ingo Molnar | eae7a75 | 2012-03-14 12:42:34 -0300 | [diff] [blame] | 12 | #ifndef __NR_perf_event_open |
| 13 | # define __NR_perf_event_open 336 |
| 14 | #endif |
Vince Weaver | 11d1578 | 2009-07-08 17:46:14 -0400 | [diff] [blame] | 15 | #endif |
| 16 | |
| 17 | #if defined(__x86_64__) |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 18 | #define mb() asm volatile("mfence" ::: "memory") |
| 19 | #define wmb() asm volatile("sfence" ::: "memory") |
Peter Zijlstra | 1a482f3 | 2009-05-23 18:28:58 +0200 | [diff] [blame] | 20 | #define rmb() asm volatile("lfence" ::: "memory") |
| 21 | #define cpu_relax() asm volatile("rep; nop" ::: "memory"); |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 22 | #define CPUINFO_PROC "model name" |
Ingo Molnar | eae7a75 | 2012-03-14 12:42:34 -0300 | [diff] [blame] | 23 | #ifndef __NR_perf_event_open |
| 24 | # define __NR_perf_event_open 298 |
| 25 | #endif |
Peter Zijlstra | 1a482f3 | 2009-05-23 18:28:58 +0200 | [diff] [blame] | 26 | #endif |
| 27 | |
| 28 | #ifdef __powerpc__ |
Sukadev Bhattiprolu | 1483c2a | 2012-10-31 11:21:28 -0700 | [diff] [blame] | 29 | #include "../../arch/powerpc/include/uapi/asm/unistd.h" |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 30 | #define mb() asm volatile ("sync" ::: "memory") |
| 31 | #define wmb() asm volatile ("sync" ::: "memory") |
Peter Zijlstra | 1a482f3 | 2009-05-23 18:28:58 +0200 | [diff] [blame] | 32 | #define rmb() asm volatile ("sync" ::: "memory") |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 33 | #define CPUINFO_PROC "cpu" |
Peter Zijlstra | 1a482f3 | 2009-05-23 18:28:58 +0200 | [diff] [blame] | 34 | #endif |
| 35 | |
Martin Schwidefsky | 12310e9 | 2009-06-22 12:08:22 +0200 | [diff] [blame] | 36 | #ifdef __s390__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 37 | #define mb() asm volatile("bcr 15,0" ::: "memory") |
| 38 | #define wmb() asm volatile("bcr 15,0" ::: "memory") |
Martin Schwidefsky | 12310e9 | 2009-06-22 12:08:22 +0200 | [diff] [blame] | 39 | #define rmb() asm volatile("bcr 15,0" ::: "memory") |
Martin Schwidefsky | 12310e9 | 2009-06-22 12:08:22 +0200 | [diff] [blame] | 40 | #endif |
| 41 | |
Paul Mundt | febe834 | 2009-06-25 14:41:57 +0900 | [diff] [blame] | 42 | #ifdef __sh__ |
Paul Mundt | febe834 | 2009-06-25 14:41:57 +0900 | [diff] [blame] | 43 | #if defined(__SH4A__) || defined(__SH5__) |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 44 | # define mb() asm volatile("synco" ::: "memory") |
| 45 | # define wmb() asm volatile("synco" ::: "memory") |
Paul Mundt | febe834 | 2009-06-25 14:41:57 +0900 | [diff] [blame] | 46 | # define rmb() asm volatile("synco" ::: "memory") |
| 47 | #else |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 48 | # define mb() asm volatile("" ::: "memory") |
| 49 | # define wmb() asm volatile("" ::: "memory") |
Paul Mundt | febe834 | 2009-06-25 14:41:57 +0900 | [diff] [blame] | 50 | # define rmb() asm volatile("" ::: "memory") |
| 51 | #endif |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 52 | #define CPUINFO_PROC "cpu type" |
Paul Mundt | febe834 | 2009-06-25 14:41:57 +0900 | [diff] [blame] | 53 | #endif |
| 54 | |
Kyle McMartin | 2d4618d | 2009-06-23 21:38:49 -0400 | [diff] [blame] | 55 | #ifdef __hppa__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 56 | #define mb() asm volatile("" ::: "memory") |
| 57 | #define wmb() asm volatile("" ::: "memory") |
Kyle McMartin | 2d4618d | 2009-06-23 21:38:49 -0400 | [diff] [blame] | 58 | #define rmb() asm volatile("" ::: "memory") |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 59 | #define CPUINFO_PROC "cpu" |
Kyle McMartin | 2d4618d | 2009-06-23 21:38:49 -0400 | [diff] [blame] | 60 | #endif |
| 61 | |
Jens Axboe | 825c9fb | 2009-09-04 02:56:22 -0700 | [diff] [blame] | 62 | #ifdef __sparc__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 63 | #ifdef __LP64__ |
| 64 | #define mb() asm volatile("ba,pt %%xcc, 1f\n" \ |
| 65 | "membar #StoreLoad\n" \ |
| 66 | "1:\n":::"memory") |
| 67 | #else |
| 68 | #define mb() asm volatile("":::"memory") |
| 69 | #endif |
| 70 | #define wmb() asm volatile("":::"memory") |
Jens Axboe | 825c9fb | 2009-09-04 02:56:22 -0700 | [diff] [blame] | 71 | #define rmb() asm volatile("":::"memory") |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 72 | #define CPUINFO_PROC "cpu" |
Jens Axboe | 825c9fb | 2009-09-04 02:56:22 -0700 | [diff] [blame] | 73 | #endif |
| 74 | |
Michael Cree | fcd14b3 | 2009-10-26 21:32:06 +1300 | [diff] [blame] | 75 | #ifdef __alpha__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 76 | #define mb() asm volatile("mb" ::: "memory") |
| 77 | #define wmb() asm volatile("wmb" ::: "memory") |
Michael Cree | fcd14b3 | 2009-10-26 21:32:06 +1300 | [diff] [blame] | 78 | #define rmb() asm volatile("mb" ::: "memory") |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 79 | #define CPUINFO_PROC "cpu model" |
Michael Cree | fcd14b3 | 2009-10-26 21:32:06 +1300 | [diff] [blame] | 80 | #endif |
| 81 | |
Luck, Tony | 11ada26 | 2009-11-17 09:05:56 -0800 | [diff] [blame] | 82 | #ifdef __ia64__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 83 | #define mb() asm volatile ("mf" ::: "memory") |
| 84 | #define wmb() asm volatile ("mf" ::: "memory") |
Luck, Tony | 11ada26 | 2009-11-17 09:05:56 -0800 | [diff] [blame] | 85 | #define rmb() asm volatile ("mf" ::: "memory") |
| 86 | #define cpu_relax() asm volatile ("hint @pause" ::: "memory") |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 87 | #define CPUINFO_PROC "model name" |
Luck, Tony | 11ada26 | 2009-11-17 09:05:56 -0800 | [diff] [blame] | 88 | #endif |
| 89 | |
Jamie Iles | 58e9f94 | 2009-12-11 12:20:09 +0000 | [diff] [blame] | 90 | #ifdef __arm__ |
Jamie Iles | 58e9f94 | 2009-12-11 12:20:09 +0000 | [diff] [blame] | 91 | /* |
| 92 | * Use the __kuser_memory_barrier helper in the CPU helper page. See |
| 93 | * arch/arm/kernel/entry-armv.S in the kernel source for details. |
| 94 | */ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 95 | #define mb() ((void(*)(void))0xffff0fa0)() |
| 96 | #define wmb() ((void(*)(void))0xffff0fa0)() |
Will Deacon | da7196e | 2010-03-03 11:47:58 +0000 | [diff] [blame] | 97 | #define rmb() ((void(*)(void))0xffff0fa0)() |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 98 | #define CPUINFO_PROC "Processor" |
Jamie Iles | 58e9f94 | 2009-12-11 12:20:09 +0000 | [diff] [blame] | 99 | #endif |
| 100 | |
Will Deacon | 0308968 | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 101 | #ifdef __aarch64__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 102 | #define mb() asm volatile("dmb ish" ::: "memory") |
| 103 | #define wmb() asm volatile("dmb ishld" ::: "memory") |
| 104 | #define rmb() asm volatile("dmb ishst" ::: "memory") |
Will Deacon | 0308968 | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 105 | #define cpu_relax() asm volatile("yield" ::: "memory") |
| 106 | #endif |
| 107 | |
Deng-Cheng Zhu | c1e028e | 2010-10-12 19:33:33 +0800 | [diff] [blame] | 108 | #ifdef __mips__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 109 | #define mb() asm volatile( \ |
Deng-Cheng Zhu | c1e028e | 2010-10-12 19:33:33 +0800 | [diff] [blame] | 110 | ".set mips2\n\t" \ |
| 111 | "sync\n\t" \ |
| 112 | ".set mips0" \ |
| 113 | : /* no output */ \ |
| 114 | : /* no input */ \ |
| 115 | : "memory") |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 116 | #define wmb() mb() |
| 117 | #define rmb() mb() |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 118 | #define CPUINFO_PROC "cpu model" |
Deng-Cheng Zhu | c1e028e | 2010-10-12 19:33:33 +0800 | [diff] [blame] | 119 | #endif |
| 120 | |
Vineet Gupta | 9854783 | 2013-01-18 15:12:24 +0530 | [diff] [blame] | 121 | #ifdef __arc__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 122 | #define mb() asm volatile("" ::: "memory") |
| 123 | #define wmb() asm volatile("" ::: "memory") |
Vineet Gupta | 9854783 | 2013-01-18 15:12:24 +0530 | [diff] [blame] | 124 | #define rmb() asm volatile("" ::: "memory") |
Vineet Gupta | 9854783 | 2013-01-18 15:12:24 +0530 | [diff] [blame] | 125 | #define CPUINFO_PROC "Processor" |
| 126 | #endif |
| 127 | |
James Hogan | 1bea5b8 | 2013-01-31 12:22:37 +0000 | [diff] [blame] | 128 | #ifdef __metag__ |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 129 | #define mb() asm volatile("" ::: "memory") |
| 130 | #define wmb() asm volatile("" ::: "memory") |
James Hogan | 1bea5b8 | 2013-01-31 12:22:37 +0000 | [diff] [blame] | 131 | #define rmb() asm volatile("" ::: "memory") |
James Hogan | 1bea5b8 | 2013-01-31 12:22:37 +0000 | [diff] [blame] | 132 | #define CPUINFO_PROC "CPU" |
| 133 | #endif |
| 134 | |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 135 | #define barrier() asm volatile ("" ::: "memory") |
| 136 | |
| 137 | #ifndef cpu_relax |
| 138 | #define cpu_relax() barrier() |
| 139 | #endif |
| 140 | |
| 141 | #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) |
| 142 | |
| 143 | |
Peter Zijlstra | 1a482f3 | 2009-05-23 18:28:58 +0200 | [diff] [blame] | 144 | #include <time.h> |
| 145 | #include <unistd.h> |
| 146 | #include <sys/types.h> |
| 147 | #include <sys/syscall.h> |
| 148 | |
David Howells | d2709c7 | 2012-11-19 22:21:03 +0000 | [diff] [blame] | 149 | #include <linux/perf_event.h> |
Peter Zijlstra | 7c6a1c6 | 2009-06-25 17:05:54 +0200 | [diff] [blame] | 150 | #include "util/types.h" |
Arnaldo Carvalho de Melo | 8035458 | 2010-05-17 15:51:10 -0300 | [diff] [blame] | 151 | #include <stdbool.h> |
Peter Zijlstra | 1a482f3 | 2009-05-23 18:28:58 +0200 | [diff] [blame] | 152 | |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 153 | /* |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 154 | * prctl(PR_TASK_PERF_EVENTS_DISABLE) will (cheaply) disable all |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 155 | * counters in the current task. |
| 156 | */ |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 157 | #define PR_TASK_PERF_EVENTS_DISABLE 31 |
| 158 | #define PR_TASK_PERF_EVENTS_ENABLE 32 |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 159 | |
Thomas Gleixner | a92e70237 | 2009-05-01 18:39:47 +0200 | [diff] [blame] | 160 | #ifndef NSEC_PER_SEC |
| 161 | # define NSEC_PER_SEC 1000000000ULL |
| 162 | #endif |
David Ahern | 70f7b4a | 2013-08-07 21:56:38 -0400 | [diff] [blame] | 163 | #ifndef NSEC_PER_USEC |
| 164 | # define NSEC_PER_USEC 1000ULL |
| 165 | #endif |
Thomas Gleixner | a92e70237 | 2009-05-01 18:39:47 +0200 | [diff] [blame] | 166 | |
| 167 | static inline unsigned long long rdclock(void) |
| 168 | { |
| 169 | struct timespec ts; |
| 170 | |
| 171 | clock_gettime(CLOCK_MONOTONIC, &ts); |
| 172 | return ts.tv_sec * 1000000000ULL + ts.tv_nsec; |
| 173 | } |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 174 | |
| 175 | /* |
| 176 | * Pick up some kernel type conventions: |
| 177 | */ |
| 178 | #define __user |
| 179 | #define asmlinkage |
| 180 | |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 181 | #define unlikely(x) __builtin_expect(!!(x), 0) |
| 182 | #define min(x, y) ({ \ |
| 183 | typeof(x) _min1 = (x); \ |
| 184 | typeof(y) _min2 = (y); \ |
| 185 | (void) (&_min1 == &_min2); \ |
| 186 | _min1 < _min2 ? _min1 : _min2; }) |
| 187 | |
Jiri Olsa | 52502bf | 2012-10-31 15:52:47 +0100 | [diff] [blame] | 188 | extern bool test_attr__enabled; |
| 189 | void test_attr__init(void); |
| 190 | void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, |
| 191 | int fd, int group_fd, unsigned long flags); |
| 192 | |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 193 | static inline int |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 194 | sys_perf_event_open(struct perf_event_attr *attr, |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 195 | pid_t pid, int cpu, int group_fd, |
| 196 | unsigned long flags) |
| 197 | { |
Jiri Olsa | 52502bf | 2012-10-31 15:52:47 +0100 | [diff] [blame] | 198 | int fd; |
| 199 | |
| 200 | fd = syscall(__NR_perf_event_open, attr, pid, cpu, |
| 201 | group_fd, flags); |
| 202 | |
| 203 | if (unlikely(test_attr__enabled)) |
| 204 | test_attr__open(attr, pid, cpu, fd, group_fd, flags); |
| 205 | |
| 206 | return fd; |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 207 | } |
| 208 | |
Ingo Molnar | 85a9f92 | 2009-05-25 09:59:50 +0200 | [diff] [blame] | 209 | #define MAX_COUNTERS 256 |
| 210 | #define MAX_NR_CPUS 256 |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 211 | |
Frederic Weisbecker | 8cb76d9 | 2009-06-26 16:28:00 +0200 | [diff] [blame] | 212 | struct ip_callchain { |
| 213 | u64 nr; |
| 214 | u64 ips[0]; |
Peter Zijlstra | f597055 | 2009-06-18 23:22:55 +0200 | [diff] [blame] | 215 | }; |
| 216 | |
Roberto Agostino Vitillo | b538752 | 2012-02-09 23:21:01 +0100 | [diff] [blame] | 217 | struct branch_flags { |
| 218 | u64 mispred:1; |
| 219 | u64 predicted:1; |
Andi Kleen | f5d05bc | 2013-09-20 07:40:41 -0700 | [diff] [blame] | 220 | u64 in_tx:1; |
| 221 | u64 abort:1; |
| 222 | u64 reserved:60; |
Roberto Agostino Vitillo | b538752 | 2012-02-09 23:21:01 +0100 | [diff] [blame] | 223 | }; |
| 224 | |
| 225 | struct branch_entry { |
| 226 | u64 from; |
| 227 | u64 to; |
| 228 | struct branch_flags flags; |
| 229 | }; |
| 230 | |
| 231 | struct branch_stack { |
| 232 | u64 nr; |
| 233 | struct branch_entry entries[0]; |
| 234 | }; |
| 235 | |
Feng Tang | 70cb4e9 | 2012-10-30 11:56:02 +0800 | [diff] [blame] | 236 | extern const char *input_name; |
Arnaldo Carvalho de Melo | 8035458 | 2010-05-17 15:51:10 -0300 | [diff] [blame] | 237 | extern bool perf_host, perf_guest; |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 238 | extern const char perf_version_string[]; |
Zhang, Yanmin | a1645ce | 2010-04-19 13:32:50 +0800 | [diff] [blame] | 239 | |
Arnaldo Carvalho de Melo | 3af6e33 | 2011-10-13 08:52:46 -0300 | [diff] [blame] | 240 | void pthread__unblock_sigwinch(void); |
| 241 | |
Namhyung Kim | 12864b3 | 2012-04-26 14:15:22 +0900 | [diff] [blame] | 242 | #include "util/target.h" |
Namhyung Kim | bea0340 | 2012-04-26 14:15:15 +0900 | [diff] [blame] | 243 | |
Jiri Olsa | 26d3302 | 2012-08-07 15:20:47 +0200 | [diff] [blame] | 244 | enum perf_call_graph_mode { |
| 245 | CALLCHAIN_NONE, |
| 246 | CALLCHAIN_FP, |
| 247 | CALLCHAIN_DWARF |
| 248 | }; |
| 249 | |
Namhyung Kim | bea0340 | 2012-04-26 14:15:15 +0900 | [diff] [blame] | 250 | struct perf_record_opts { |
Arnaldo Carvalho de Melo | 602ad87 | 2013-11-12 16:46:16 -0300 | [diff] [blame] | 251 | struct target target; |
Jiri Olsa | 26d3302 | 2012-08-07 15:20:47 +0200 | [diff] [blame] | 252 | int call_graph; |
Arnaldo Carvalho de Melo | ed80f58 | 2011-11-11 15:12:56 -0200 | [diff] [blame] | 253 | bool group; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 254 | bool inherit_stat; |
| 255 | bool no_delay; |
| 256 | bool no_inherit; |
Adrian Hunter | 69e7e5b | 2013-11-18 11:55:57 +0200 | [diff] [blame^] | 257 | bool no_inherit_set; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 258 | bool no_samples; |
| 259 | bool raw_samples; |
| 260 | bool sample_address; |
Andi Kleen | 0548429 | 2013-01-24 16:10:29 +0100 | [diff] [blame] | 261 | bool sample_weight; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 262 | bool sample_time; |
Andrew Vagin | 3e76ac7 | 2011-12-20 17:32:45 +0300 | [diff] [blame] | 263 | bool period; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 264 | unsigned int freq; |
Arnaldo Carvalho de Melo | 01c2d99 | 2011-11-09 09:16:26 -0200 | [diff] [blame] | 265 | unsigned int mmap_pages; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 266 | unsigned int user_freq; |
Stephane Eranian | a00dc31 | 2012-05-25 23:13:44 +0200 | [diff] [blame] | 267 | u64 branch_stack; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 268 | u64 default_interval; |
| 269 | u64 user_interval; |
Jiri Olsa | 26d3302 | 2012-08-07 15:20:47 +0200 | [diff] [blame] | 270 | u16 stack_dump_size; |
Andi Kleen | 475eeab | 2013-09-20 07:40:43 -0700 | [diff] [blame] | 271 | bool sample_transaction; |
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 272 | }; |
| 273 | |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 274 | #endif |