drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / tools / perf / util / usage.c
blob4c8ffbad2323e3805fe06167f1fcc212f6d050bd
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * usage.c
5 * Various reporting routines.
6 * Originally copied from GIT source.
8 * Copyright (C) Linus Torvalds, 2005
9 */
10 #include "util.h"
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <linux/compiler.h>
15 const char perf_usage_string[] =
16 "perf [--version] [--help] [OPTIONS] COMMAND [ARGS]";
18 const char perf_more_info_string[] =
19 "See 'perf help COMMAND' for more information on a specific command.";
21 static __noreturn void usage_builtin(const char *err)
23 fprintf(stderr, "\n Usage: %s\n", err);
24 exit(129);
27 /* If we are in a dlopen()ed .so write to a global variable would segfault
28 * (ugh), so keep things static. */
29 static void (*usage_routine)(const char *err) __noreturn = usage_builtin;
31 void usage(const char *err)
33 usage_routine(err);