root/tools/perf/lib/internal.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 #ifndef __LIBPERF_INTERNAL_H
   3 #define __LIBPERF_INTERNAL_H
   4 
   5 void libperf_print(enum libperf_print_level level,
   6                    const char *format, ...)
   7         __attribute__((format(printf, 2, 3)));
   8 
   9 #define __pr(level, fmt, ...)   \
  10 do {                            \
  11         libperf_print(level, "libperf: " fmt, ##__VA_ARGS__);     \
  12 } while (0)
  13 
  14 #define pr_warning(fmt, ...)    __pr(LIBPERF_WARN, fmt, ##__VA_ARGS__)
  15 #define pr_info(fmt, ...)       __pr(LIBPERF_INFO, fmt, ##__VA_ARGS__)
  16 #define pr_debug(fmt, ...)      __pr(LIBPERF_DEBUG, fmt, ##__VA_ARGS__)
  17 
  18 #endif /* __LIBPERF_INTERNAL_H */

/* [<][>][^][v][top][bottom][index][help] */