--- zzzz-none-000/linux-3.10.107/tools/perf/util/usage.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/tools/perf/util/usage.c 2021-02-04 17:41:59.000000000 +0000 @@ -50,6 +50,11 @@ die_routine = routine; } +void set_warning_routine(void (*routine)(const char *err, va_list params)) +{ + warn_routine = routine; +} + void usage(const char *err) { usage_routine(err);