mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
Move print_*_events functions out of parse-events.c into a new print-events.c. Move tracepoint code into tracepoint.c or trace-event-info.c (sole user). This reduces the dependencies of parse-events.c and makes it more amenable to being a library in the future. Remove some unnecessary definitions from parse-events.h. Fix a checkpatch.pl warning on using unsigned rather than unsigned int. Fix some line length warnings too. Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Add include linux/stddef.h before perf_events.h for systems where __always_inline isn't pulled in before used, such as older Alpine Linux ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
23 lines
805 B
C
23 lines
805 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __PERF_PRINT_EVENTS_H
|
|
#define __PERF_PRINT_EVENTS_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct event_symbol;
|
|
|
|
void print_events(const char *event_glob, bool name_only, bool quiet_flag,
|
|
bool long_desc, bool details_flag, bool deprecated,
|
|
const char *pmu_name);
|
|
int print_hwcache_events(const char *event_glob, bool name_only);
|
|
void print_sdt_events(const char *subsys_glob, const char *event_glob,
|
|
bool name_only);
|
|
void print_symbol_events(const char *event_glob, unsigned int type,
|
|
struct event_symbol *syms, unsigned int max,
|
|
bool name_only);
|
|
void print_tool_events(const char *event_glob, bool name_only);
|
|
void print_tracepoint_events(const char *subsys_glob, const char *event_glob,
|
|
bool name_only);
|
|
|
|
#endif /* __PERF_PRINT_EVENTS_H */
|