perf tools: Resolve machine earlier and pass it to perf_event_ops
[deliverable/linux.git] / tools / perf / util / top.h
CommitLineData
8c3e10eb
ACM
1#ifndef __PERF_TOP_H
2#define __PERF_TOP_H 1
3
4#include "types.h"
d20deb64 5#include "session.h"
8c3e10eb
ACM
6#include "../perf.h"
7#include <stddef.h>
8c3e10eb
ACM
8
9struct perf_evlist;
10struct perf_evsel;
11
8c3e10eb 12struct perf_top {
d20deb64 13 struct perf_event_ops ops;
8c3e10eb
ACM
14 struct perf_evlist *evlist;
15 /*
16 * Symbols will be added here in perf_event__process_sample and will
17 * get out after decayed.
18 */
8c3e10eb
ACM
19 u64 samples;
20 u64 kernel_samples, us_samples;
21 u64 exact_samples;
22 u64 guest_us_samples, guest_kernel_samples;
23 int print_entries, count_filter, delay_secs;
ab81f3fd 24 int freq;
ef4d001d 25 pid_t target_pid, target_tid;
8c3e10eb
ACM
26 bool hide_kernel_symbols, hide_user_symbols, zero;
27 const char *cpu_list;
ab81f3fd 28 struct hist_entry *sym_filter_entry;
8c3e10eb 29 struct perf_evsel *sym_evsel;
dcc101d1 30 struct perf_session *session;
8c3e10eb
ACM
31};
32
33size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size);
34void perf_top__reset_sample_counters(struct perf_top *top);
8c3e10eb 35#endif /* __PERF_TOP_H */
This page took 0.190662 seconds and 5 git commands to generate.