| .. | .. |
|---|
| 3 | 3 | #define __PERF_TOP_H 1 |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | #include "tool.h" |
|---|
| 6 | +#include "evswitch.h" |
|---|
| 6 | 7 | #include "annotate.h" |
|---|
| 8 | +#include "ordered-events.h" |
|---|
| 9 | +#include "record.h" |
|---|
| 7 | 10 | #include <linux/types.h> |
|---|
| 8 | 11 | #include <stddef.h> |
|---|
| 9 | 12 | #include <stdbool.h> |
|---|
| 10 | 13 | #include <sys/ioctl.h> |
|---|
| 11 | 14 | |
|---|
| 12 | | -struct perf_evlist; |
|---|
| 13 | | -struct perf_evsel; |
|---|
| 15 | +struct evlist; |
|---|
| 16 | +struct evsel; |
|---|
| 14 | 17 | struct perf_session; |
|---|
| 15 | 18 | |
|---|
| 16 | 19 | struct perf_top { |
|---|
| 17 | 20 | struct perf_tool tool; |
|---|
| 18 | | - struct perf_evlist *evlist; |
|---|
| 21 | + struct evlist *evlist, *sb_evlist; |
|---|
| 19 | 22 | struct record_opts record_opts; |
|---|
| 20 | 23 | struct annotation_options annotation_opts; |
|---|
| 24 | + struct evswitch evswitch; |
|---|
| 21 | 25 | /* |
|---|
| 22 | 26 | * Symbols will be added here in perf_event__process_sample and will |
|---|
| 23 | 27 | * get out after decayed. |
|---|
| 24 | 28 | */ |
|---|
| 25 | | - u64 samples; |
|---|
| 29 | + u64 samples, lost, lost_total, drop, drop_total; |
|---|
| 26 | 30 | u64 kernel_samples, us_samples; |
|---|
| 27 | 31 | u64 exact_samples; |
|---|
| 28 | 32 | u64 guest_us_samples, guest_kernel_samples; |
|---|
| .. | .. |
|---|
| 32 | 36 | bool use_tui, use_stdio; |
|---|
| 33 | 37 | bool vmlinux_warned; |
|---|
| 34 | 38 | bool dump_symtab; |
|---|
| 39 | + bool stitch_lbr; |
|---|
| 35 | 40 | struct hist_entry *sym_filter_entry; |
|---|
| 36 | | - struct perf_evsel *sym_evsel; |
|---|
| 41 | + struct evsel *sym_evsel; |
|---|
| 37 | 42 | struct perf_session *session; |
|---|
| 38 | 43 | struct winsize winsize; |
|---|
| 39 | 44 | int realtime_prio; |
|---|
| 40 | 45 | const char *sym_filter; |
|---|
| 41 | 46 | float min_percent; |
|---|
| 42 | 47 | unsigned int nr_threads_synthesize; |
|---|
| 48 | + |
|---|
| 49 | + struct { |
|---|
| 50 | + struct ordered_events *in; |
|---|
| 51 | + struct ordered_events data[2]; |
|---|
| 52 | + bool rotate; |
|---|
| 53 | + pthread_mutex_t mutex; |
|---|
| 54 | + pthread_cond_t cond; |
|---|
| 55 | + } qe; |
|---|
| 43 | 56 | }; |
|---|
| 44 | 57 | |
|---|
| 45 | 58 | #define CONSOLE_CLEAR "[H[2J" |
|---|