builtin-report.c (81cce8de9437be9234f651be1f03e596c1b1a79a) | builtin-report.c (fbe96f29ce4b33e0a22219cc7f5996d9157717e3) |
---|---|
1/* 2 * builtin-report.c 3 * 4 * Builtin report command: Analyze the perf.data input file, 5 * look up and read DSOs and symbol information and display 6 * a histogram of results, along various sorting keys. 7 */ 8#include "builtin.h" --- 26 unchanged lines hidden (view full) --- 35 36#include <linux/bitmap.h> 37 38static char const *input_name = "perf.data"; 39 40static bool force, use_tui, use_stdio; 41static bool hide_unresolved; 42static bool dont_use_callchains; | 1/* 2 * builtin-report.c 3 * 4 * Builtin report command: Analyze the perf.data input file, 5 * look up and read DSOs and symbol information and display 6 * a histogram of results, along various sorting keys. 7 */ 8#include "builtin.h" --- 26 unchanged lines hidden (view full) --- 35 36#include <linux/bitmap.h> 37 38static char const *input_name = "perf.data"; 39 40static bool force, use_tui, use_stdio; 41static bool hide_unresolved; 42static bool dont_use_callchains; |
43static bool show_full_info; |
|
43 44static bool show_threads; 45static struct perf_read_values show_threads_values; 46 47static const char default_pretty_printing_style[] = "normal"; 48static const char *pretty_printing_style = default_pretty_printing_style; 49 50static char callchain_default_opt[] = "fractal,0.5,callee"; --- 217 unchanged lines hidden (view full) --- 268 return -ENOMEM; 269 270 if (cpu_list) { 271 ret = perf_session__cpu_bitmap(session, cpu_list, cpu_bitmap); 272 if (ret) 273 goto out_delete; 274 } 275 | 44 45static bool show_threads; 46static struct perf_read_values show_threads_values; 47 48static const char default_pretty_printing_style[] = "normal"; 49static const char *pretty_printing_style = default_pretty_printing_style; 50 51static char callchain_default_opt[] = "fractal,0.5,callee"; --- 217 unchanged lines hidden (view full) --- 269 return -ENOMEM; 270 271 if (cpu_list) { 272 ret = perf_session__cpu_bitmap(session, cpu_list, cpu_bitmap); 273 if (ret) 274 goto out_delete; 275 } 276 |
277 if (use_browser <= 0) 278 perf_session__fprintf_info(session, stdout, show_full_info); 279 |
|
276 if (show_threads) 277 perf_read_values_init(&show_threads_values); 278 279 ret = perf_session__setup_sample_type(session); 280 if (ret) 281 goto out_delete; 282 283 ret = perf_session__process_events(session, &event_ops); --- 196 unchanged lines hidden (view full) --- 480 OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", 481 "separator for columns, no spaces will be added between " 482 "columns '.' is reserved."), 483 OPT_BOOLEAN('U', "hide-unresolved", &hide_unresolved, 484 "Only display entries resolved to a symbol"), 485 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", 486 "Look for files with symbols relative to this directory"), 487 OPT_STRING('c', "cpu", &cpu_list, "cpu", "list of cpus to profile"), | 280 if (show_threads) 281 perf_read_values_init(&show_threads_values); 282 283 ret = perf_session__setup_sample_type(session); 284 if (ret) 285 goto out_delete; 286 287 ret = perf_session__process_events(session, &event_ops); --- 196 unchanged lines hidden (view full) --- 484 OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", 485 "separator for columns, no spaces will be added between " 486 "columns '.' is reserved."), 487 OPT_BOOLEAN('U', "hide-unresolved", &hide_unresolved, 488 "Only display entries resolved to a symbol"), 489 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", 490 "Look for files with symbols relative to this directory"), 491 OPT_STRING('c', "cpu", &cpu_list, "cpu", "list of cpus to profile"), |
492 OPT_BOOLEAN('I', "show-info", &show_full_info, 493 "Display extended information about perf.data file"), |
|
488 OPT_STRING('M', "disassembler-style", &disassembler_style, "disassembler style", 489 "Specify disassembler style (e.g. -M intel for intel syntax)"), 490 OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, 491 "Show a column with the sum of periods"), 492 OPT_END() 493}; 494 495int cmd_report(int argc, const char **argv, const char *prefix __used) --- 71 unchanged lines hidden --- | 494 OPT_STRING('M', "disassembler-style", &disassembler_style, "disassembler style", 495 "Specify disassembler style (e.g. -M intel for intel syntax)"), 496 OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, 497 "Show a column with the sum of periods"), 498 OPT_END() 499}; 500 501int cmd_report(int argc, const char **argv, const char *prefix __used) --- 71 unchanged lines hidden --- |