perf.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) perf.c (cd8ef949203c0fe88b031530cb5b63afd582e0f7)
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 */

--- 418 unchanged lines hidden (view full) ---

427 /* See if it's an internal command */
428 handle_internal_command(*argcp, *argv);
429
430 /* .. then try the external ones */
431 execv_dashed_external(*argv);
432 return 0;
433}
434
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 */

--- 418 unchanged lines hidden (view full) ---

427 /* See if it's an internal command */
428 handle_internal_command(*argcp, *argv);
429
430 /* .. then try the external ones */
431 execv_dashed_external(*argv);
432 return 0;
433}
434
435static void pthread__block_sigwinch(void)
436{
437 sigset_t set;
438
439 sigemptyset(&set);
440 sigaddset(&set, SIGWINCH);
441 pthread_sigmask(SIG_BLOCK, &set, NULL);
442}
443
444void pthread__unblock_sigwinch(void)
445{
446 sigset_t set;
447
448 sigemptyset(&set);
449 sigaddset(&set, SIGWINCH);
450 pthread_sigmask(SIG_UNBLOCK, &set, NULL);
451}
452
453static int libperf_print(enum libperf_print_level level,
454 const char *fmt, va_list ap)
455{
456 return veprintf(level, verbose, fmt, ap);
457}
458
459int main(int argc, const char **argv)
460{

--- 118 unchanged lines hidden ---
435static int libperf_print(enum libperf_print_level level,
436 const char *fmt, va_list ap)
437{
438 return veprintf(level, verbose, fmt, ap);
439}
440
441int main(int argc, const char **argv)
442{

--- 118 unchanged lines hidden ---