forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf evsel: Move config terms to a separate header
Further reducing the size of util/evsel.h. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
- Loading branch information
Showing
6 changed files
with
54 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
#ifndef __PERF_EVSEL_CONFIG_H | ||
#define __PERF_EVSEL_CONFIG_H 1 | ||
|
||
#include <linux/types.h> | ||
#include <stdbool.h> | ||
|
||
/* | ||
* The 'struct perf_evsel_config_term' is used to pass event | ||
* specific configuration data to perf_evsel__config routine. | ||
* It is allocated within event parsing and attached to | ||
* perf_evsel::config_terms list head. | ||
*/ | ||
enum evsel_term_type { | ||
PERF_EVSEL__CONFIG_TERM_PERIOD, | ||
PERF_EVSEL__CONFIG_TERM_FREQ, | ||
PERF_EVSEL__CONFIG_TERM_TIME, | ||
PERF_EVSEL__CONFIG_TERM_CALLGRAPH, | ||
PERF_EVSEL__CONFIG_TERM_STACK_USER, | ||
PERF_EVSEL__CONFIG_TERM_INHERIT, | ||
PERF_EVSEL__CONFIG_TERM_MAX_STACK, | ||
PERF_EVSEL__CONFIG_TERM_MAX_EVENTS, | ||
PERF_EVSEL__CONFIG_TERM_OVERWRITE, | ||
PERF_EVSEL__CONFIG_TERM_DRV_CFG, | ||
PERF_EVSEL__CONFIG_TERM_BRANCH, | ||
PERF_EVSEL__CONFIG_TERM_PERCORE, | ||
PERF_EVSEL__CONFIG_TERM_AUX_OUTPUT, | ||
}; | ||
|
||
struct perf_evsel_config_term { | ||
struct list_head list; | ||
enum evsel_term_type type; | ||
union { | ||
u64 period; | ||
u64 freq; | ||
bool time; | ||
char *callgraph; | ||
char *drv_cfg; | ||
u64 stack_user; | ||
int max_stack; | ||
bool inherit; | ||
bool overwrite; | ||
char *branch; | ||
unsigned long max_events; | ||
bool percore; | ||
bool aux_output; | ||
} val; | ||
bool weak; | ||
}; | ||
#endif // __PERF_EVSEL_CONFIG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters