]> Git Repo - linux.git/blob - tools/perf/lib/internal.h
net: dsa: sja1105: Implement state machine for TAS with PTP clock source
[linux.git] / tools / perf / lib / internal.h
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 */
This page took 0.032983 seconds and 4 git commands to generate.