diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/arch/common.c | 4 | ||||
-rw-r--r-- | tools/perf/arch/common.h | 2 | ||||
-rw-r--r-- | tools/perf/ui/browser.h | 4 | ||||
-rw-r--r-- | tools/perf/ui/browsers/header.c | 2 | ||||
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 12 | ||||
-rw-r--r-- | tools/perf/util/header.h | 4 | ||||
-rw-r--r-- | tools/perf/util/hist.h | 4 | ||||
-rw-r--r-- | tools/perf/util/session.c | 2 | ||||
-rw-r--r-- | tools/perf/util/symbol.c | 4 | ||||
-rw-r--r-- | tools/perf/util/symbol.h | 4 |
10 files changed, 21 insertions, 21 deletions
diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c index b7bb42c44694..b00dfd92ea73 100644 --- a/tools/perf/arch/common.c +++ b/tools/perf/arch/common.c | |||
@@ -128,7 +128,7 @@ static const char *normalize_arch(char *arch) | |||
128 | return arch; | 128 | return arch; |
129 | } | 129 | } |
130 | 130 | ||
131 | static int perf_session_env__lookup_binutils_path(struct perf_session_env *env, | 131 | static int perf_session_env__lookup_binutils_path(struct perf_env *env, |
132 | const char *name, | 132 | const char *name, |
133 | const char **path) | 133 | const char **path) |
134 | { | 134 | { |
@@ -206,7 +206,7 @@ out_error: | |||
206 | return -1; | 206 | return -1; |
207 | } | 207 | } |
208 | 208 | ||
209 | int perf_session_env__lookup_objdump(struct perf_session_env *env) | 209 | int perf_session_env__lookup_objdump(struct perf_env *env) |
210 | { | 210 | { |
211 | /* | 211 | /* |
212 | * For live mode, env->arch will be NULL and we can use | 212 | * For live mode, env->arch will be NULL and we can use |
diff --git a/tools/perf/arch/common.h b/tools/perf/arch/common.h index ede246eda9be..20176df69fc8 100644 --- a/tools/perf/arch/common.h +++ b/tools/perf/arch/common.h | |||
@@ -5,6 +5,6 @@ | |||
5 | 5 | ||
6 | extern const char *objdump_path; | 6 | extern const char *objdump_path; |
7 | 7 | ||
8 | int perf_session_env__lookup_objdump(struct perf_session_env *env); | 8 | int perf_session_env__lookup_objdump(struct perf_env *env); |
9 | 9 | ||
10 | #endif /* ARCH_PERF_COMMON_H */ | 10 | #endif /* ARCH_PERF_COMMON_H */ |
diff --git a/tools/perf/ui/browser.h b/tools/perf/ui/browser.h index 52be87125def..f3cef564de02 100644 --- a/tools/perf/ui/browser.h +++ b/tools/perf/ui/browser.h | |||
@@ -61,8 +61,8 @@ int ui_browser__help_window(struct ui_browser *browser, const char *text); | |||
61 | bool ui_browser__dialog_yesno(struct ui_browser *browser, const char *text); | 61 | bool ui_browser__dialog_yesno(struct ui_browser *browser, const char *text); |
62 | int ui_browser__input_window(const char *title, const char *text, char *input, | 62 | int ui_browser__input_window(const char *title, const char *text, char *input, |
63 | const char *exit_msg, int delay_sec); | 63 | const char *exit_msg, int delay_sec); |
64 | struct perf_session_env; | 64 | struct perf_env; |
65 | int tui__header_window(struct perf_session_env *env); | 65 | int tui__header_window(struct perf_env *env); |
66 | 66 | ||
67 | void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence); | 67 | void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence); |
68 | unsigned int ui_browser__argv_refresh(struct ui_browser *browser); | 68 | unsigned int ui_browser__argv_refresh(struct ui_browser *browser); |
diff --git a/tools/perf/ui/browsers/header.c b/tools/perf/ui/browsers/header.c index f10681717f93..edbeaaf31ace 100644 --- a/tools/perf/ui/browsers/header.c +++ b/tools/perf/ui/browsers/header.c | |||
@@ -91,7 +91,7 @@ static int ui__list_menu(int argc, char * const argv[]) | |||
91 | return list_menu__run(&menu); | 91 | return list_menu__run(&menu); |
92 | } | 92 | } |
93 | 93 | ||
94 | int tui__header_window(struct perf_session_env *env) | 94 | int tui__header_window(struct perf_env *env) |
95 | { | 95 | { |
96 | int i, argc = 0; | 96 | int i, argc = 0; |
97 | char **argv; | 97 | char **argv; |
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 10c7ec041039..cf86f2d3a5e7 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -26,7 +26,7 @@ struct hist_browser { | |||
26 | struct map_symbol *selection; | 26 | struct map_symbol *selection; |
27 | struct hist_browser_timer *hbt; | 27 | struct hist_browser_timer *hbt; |
28 | struct pstack *pstack; | 28 | struct pstack *pstack; |
29 | struct perf_session_env *env; | 29 | struct perf_env *env; |
30 | int print_seq; | 30 | int print_seq; |
31 | bool show_dso; | 31 | bool show_dso; |
32 | bool show_headers; | 32 | bool show_headers; |
@@ -1214,7 +1214,7 @@ static int hist_browser__dump(struct hist_browser *browser) | |||
1214 | 1214 | ||
1215 | static struct hist_browser *hist_browser__new(struct hists *hists, | 1215 | static struct hist_browser *hist_browser__new(struct hists *hists, |
1216 | struct hist_browser_timer *hbt, | 1216 | struct hist_browser_timer *hbt, |
1217 | struct perf_session_env *env) | 1217 | struct perf_env *env) |
1218 | { | 1218 | { |
1219 | struct hist_browser *browser = zalloc(sizeof(*browser)); | 1219 | struct hist_browser *browser = zalloc(sizeof(*browser)); |
1220 | 1220 | ||
@@ -1695,7 +1695,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
1695 | bool left_exits, | 1695 | bool left_exits, |
1696 | struct hist_browser_timer *hbt, | 1696 | struct hist_browser_timer *hbt, |
1697 | float min_pcnt, | 1697 | float min_pcnt, |
1698 | struct perf_session_env *env) | 1698 | struct perf_env *env) |
1699 | { | 1699 | { |
1700 | struct hists *hists = evsel__hists(evsel); | 1700 | struct hists *hists = evsel__hists(evsel); |
1701 | struct hist_browser *browser = hist_browser__new(hists, hbt, env); | 1701 | struct hist_browser *browser = hist_browser__new(hists, hbt, env); |
@@ -2016,7 +2016,7 @@ struct perf_evsel_menu { | |||
2016 | struct perf_evsel *selection; | 2016 | struct perf_evsel *selection; |
2017 | bool lost_events, lost_events_warned; | 2017 | bool lost_events, lost_events_warned; |
2018 | float min_pcnt; | 2018 | float min_pcnt; |
2019 | struct perf_session_env *env; | 2019 | struct perf_env *env; |
2020 | }; | 2020 | }; |
2021 | 2021 | ||
2022 | static void perf_evsel_menu__write(struct ui_browser *browser, | 2022 | static void perf_evsel_menu__write(struct ui_browser *browser, |
@@ -2169,7 +2169,7 @@ static int __perf_evlist__tui_browse_hists(struct perf_evlist *evlist, | |||
2169 | int nr_entries, const char *help, | 2169 | int nr_entries, const char *help, |
2170 | struct hist_browser_timer *hbt, | 2170 | struct hist_browser_timer *hbt, |
2171 | float min_pcnt, | 2171 | float min_pcnt, |
2172 | struct perf_session_env *env) | 2172 | struct perf_env *env) |
2173 | { | 2173 | { |
2174 | struct perf_evsel *pos; | 2174 | struct perf_evsel *pos; |
2175 | struct perf_evsel_menu menu = { | 2175 | struct perf_evsel_menu menu = { |
@@ -2202,7 +2202,7 @@ static int __perf_evlist__tui_browse_hists(struct perf_evlist *evlist, | |||
2202 | int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help, | 2202 | int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help, |
2203 | struct hist_browser_timer *hbt, | 2203 | struct hist_browser_timer *hbt, |
2204 | float min_pcnt, | 2204 | float min_pcnt, |
2205 | struct perf_session_env *env) | 2205 | struct perf_env *env) |
2206 | { | 2206 | { |
2207 | int nr_entries = evlist->nr_entries; | 2207 | int nr_entries = evlist->nr_entries; |
2208 | 2208 | ||
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 9b53b6525ce8..396e4965f0c9 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -66,7 +66,7 @@ struct perf_header; | |||
66 | int perf_file_header__read(struct perf_file_header *header, | 66 | int perf_file_header__read(struct perf_file_header *header, |
67 | struct perf_header *ph, int fd); | 67 | struct perf_header *ph, int fd); |
68 | 68 | ||
69 | struct perf_session_env { | 69 | struct perf_env { |
70 | char *hostname; | 70 | char *hostname; |
71 | char *os_release; | 71 | char *os_release; |
72 | char *version; | 72 | char *version; |
@@ -98,7 +98,7 @@ struct perf_header { | |||
98 | u64 data_size; | 98 | u64 data_size; |
99 | u64 feat_offset; | 99 | u64 feat_offset; |
100 | DECLARE_BITMAP(adds_features, HEADER_FEAT_BITS); | 100 | DECLARE_BITMAP(adds_features, HEADER_FEAT_BITS); |
101 | struct perf_session_env env; | 101 | struct perf_env env; |
102 | }; | 102 | }; |
103 | 103 | ||
104 | struct perf_evlist; | 104 | struct perf_evlist; |
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index bc528d54e457..de6d58e7f0d5 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -313,7 +313,7 @@ int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, | |||
313 | int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help, | 313 | int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help, |
314 | struct hist_browser_timer *hbt, | 314 | struct hist_browser_timer *hbt, |
315 | float min_pcnt, | 315 | float min_pcnt, |
316 | struct perf_session_env *env); | 316 | struct perf_env *env); |
317 | int script_browse(const char *script_opt); | 317 | int script_browse(const char *script_opt); |
318 | #else | 318 | #else |
319 | static inline | 319 | static inline |
@@ -321,7 +321,7 @@ int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __maybe_unused, | |||
321 | const char *help __maybe_unused, | 321 | const char *help __maybe_unused, |
322 | struct hist_browser_timer *hbt __maybe_unused, | 322 | struct hist_browser_timer *hbt __maybe_unused, |
323 | float min_pcnt __maybe_unused, | 323 | float min_pcnt __maybe_unused, |
324 | struct perf_session_env *env __maybe_unused) | 324 | struct perf_env *env __maybe_unused) |
325 | { | 325 | { |
326 | return 0; | 326 | return 0; |
327 | } | 327 | } |
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 18722e774a69..8a4537ee9bc3 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -170,7 +170,7 @@ static void perf_session__delete_threads(struct perf_session *session) | |||
170 | machine__delete_threads(&session->machines.host); | 170 | machine__delete_threads(&session->machines.host); |
171 | } | 171 | } |
172 | 172 | ||
173 | static void perf_session_env__exit(struct perf_session_env *env) | 173 | static void perf_session_env__exit(struct perf_env *env) |
174 | { | 174 | { |
175 | zfree(&env->hostname); | 175 | zfree(&env->hostname); |
176 | zfree(&env->os_release); | 176 | zfree(&env->os_release); |
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 46ae0532a8a6..1f97ffb158a6 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1853,7 +1853,7 @@ static void vmlinux_path__exit(void) | |||
1853 | zfree(&vmlinux_path); | 1853 | zfree(&vmlinux_path); |
1854 | } | 1854 | } |
1855 | 1855 | ||
1856 | static int vmlinux_path__init(struct perf_session_env *env) | 1856 | static int vmlinux_path__init(struct perf_env *env) |
1857 | { | 1857 | { |
1858 | struct utsname uts; | 1858 | struct utsname uts; |
1859 | char bf[PATH_MAX]; | 1859 | char bf[PATH_MAX]; |
@@ -1964,7 +1964,7 @@ static bool symbol__read_kptr_restrict(void) | |||
1964 | return value; | 1964 | return value; |
1965 | } | 1965 | } |
1966 | 1966 | ||
1967 | int symbol__init(struct perf_session_env *env) | 1967 | int symbol__init(struct perf_env *env) |
1968 | { | 1968 | { |
1969 | const char *symfs; | 1969 | const char *symfs; |
1970 | 1970 | ||
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index a4cde92afbad..440ba8ae888f 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -252,8 +252,8 @@ int modules__parse(const char *filename, void *arg, | |||
252 | int filename__read_debuglink(const char *filename, char *debuglink, | 252 | int filename__read_debuglink(const char *filename, char *debuglink, |
253 | size_t size); | 253 | size_t size); |
254 | 254 | ||
255 | struct perf_session_env; | 255 | struct perf_env; |
256 | int symbol__init(struct perf_session_env *env); | 256 | int symbol__init(struct perf_env *env); |
257 | void symbol__exit(void); | 257 | void symbol__exit(void); |
258 | void symbol__elf_init(void); | 258 | void symbol__elf_init(void); |
259 | struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name); | 259 | struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name); |