perf.c (f913f3a655cb4c37129bb36c9f175071e1fbdc29) | perf.c (d25ed5d9fad98fd36ffca0bb5c3a0761a11e3f3c) |
---|---|
1/* 2 * perf.c 3 * 4 * Performance analysis utility. 5 * 6 * This is the main hub from which the sub-commands (perf stat, 7 * perf top, perf record, perf report, etc.) are started. 8 */ --- 15 unchanged lines hidden (view full) --- 24#include <time.h> 25 26const char perf_usage_string[] = 27 "perf [--version] [--help] [OPTIONS] COMMAND [ARGS]"; 28 29const char perf_more_info_string[] = 30 "See 'perf help COMMAND' for more information on a specific command."; 31 | 1/* 2 * perf.c 3 * 4 * Performance analysis utility. 5 * 6 * This is the main hub from which the sub-commands (perf stat, 7 * perf top, perf record, perf report, etc.) are started. 8 */ --- 15 unchanged lines hidden (view full) --- 24#include <time.h> 25 26const char perf_usage_string[] = 27 "perf [--version] [--help] [OPTIONS] COMMAND [ARGS]"; 28 29const char perf_more_info_string[] = 30 "See 'perf help COMMAND' for more information on a specific command."; 31 |
32int use_browser = -1; | |
33static int use_pager = -1; 34const char *input_name; 35 36struct cmd_struct { 37 const char *cmd; 38 int (*fn)(int, const char **, const char *); 39 int option; 40}; --- 284 unchanged lines hidden (view full) --- 325 ret = 1; 326 } 327 328 errno = saved_errno; 329 330 return ret; 331} 332 | 32static int use_pager = -1; 33const char *input_name; 34 35struct cmd_struct { 36 const char *cmd; 37 int (*fn)(int, const char **, const char *); 38 int option; 39}; --- 284 unchanged lines hidden (view full) --- 324 ret = 1; 325 } 326 327 errno = saved_errno; 328 329 return ret; 330} 331 |
333const char perf_version_string[] = PERF_VERSION; 334 | |
335#define RUN_SETUP (1<<0) 336#define USE_PAGER (1<<1) 337 338static int run_builtin(struct cmd_struct *p, int argc, const char **argv) 339{ 340 int status; 341 struct stat st; 342 const char *prefix; --- 291 unchanged lines hidden --- | 332#define RUN_SETUP (1<<0) 333#define USE_PAGER (1<<1) 334 335static int run_builtin(struct cmd_struct *p, int argc, const char **argv) 336{ 337 int status; 338 struct stat st; 339 const char *prefix; --- 291 unchanged lines hidden --- |