mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
perf jevents: Make all tables static
The tables created by jevents.py are only used within the pmu-events.c file. Change the declarations of those global variables to be static to encapsulate this. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
3f02cebe13
commit
4df4370937
|
|
@ -2585,7 +2585,7 @@ static const struct compact_pmu_event pmu_events__common_tool[] = {
|
|||
|
||||
};
|
||||
|
||||
const struct pmu_table_entry pmu_events__common[] = {
|
||||
static const struct pmu_table_entry pmu_events__common[] = {
|
||||
{
|
||||
.entries = pmu_events__common_default_core,
|
||||
.num_entries = ARRAY_SIZE(pmu_events__common_default_core),
|
||||
|
|
@ -2630,7 +2630,7 @@ static const struct compact_pmu_event pmu_events__test_soc_cpu_uncore_imc_free_r
|
|||
|
||||
};
|
||||
|
||||
const struct pmu_table_entry pmu_events__test_soc_cpu[] = {
|
||||
static const struct pmu_table_entry pmu_events__test_soc_cpu[] = {
|
||||
{
|
||||
.entries = pmu_events__test_soc_cpu_default_core,
|
||||
.num_entries = ARRAY_SIZE(pmu_events__test_soc_cpu_default_core),
|
||||
|
|
@ -2682,7 +2682,7 @@ static const struct compact_pmu_event pmu_metrics__test_soc_cpu_default_core[] =
|
|||
|
||||
};
|
||||
|
||||
const struct pmu_table_entry pmu_metrics__test_soc_cpu[] = {
|
||||
static const struct pmu_table_entry pmu_metrics__test_soc_cpu[] = {
|
||||
{
|
||||
.entries = pmu_metrics__test_soc_cpu_default_core,
|
||||
.num_entries = ARRAY_SIZE(pmu_metrics__test_soc_cpu_default_core),
|
||||
|
|
@ -2701,7 +2701,7 @@ static const struct compact_pmu_event pmu_events__test_soc_sys_uncore_sys_ddr_pm
|
|||
|
||||
};
|
||||
|
||||
const struct pmu_table_entry pmu_events__test_soc_sys[] = {
|
||||
static const struct pmu_table_entry pmu_events__test_soc_sys[] = {
|
||||
{
|
||||
.entries = pmu_events__test_soc_sys_uncore_sys_ccn_pmu,
|
||||
.num_entries = ARRAY_SIZE(pmu_events__test_soc_sys_uncore_sys_ccn_pmu),
|
||||
|
|
@ -2751,7 +2751,7 @@ struct pmu_events_map {
|
|||
* Global table mapping each known CPU for the architecture to its
|
||||
* table of PMU events.
|
||||
*/
|
||||
const struct pmu_events_map pmu_events_map[] = {
|
||||
static const struct pmu_events_map pmu_events_map[] = {
|
||||
{
|
||||
.arch = "common",
|
||||
.cpuid = "common",
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ def print_pending_events() -> None:
|
|||
_args.output_file.write(f"""
|
||||
}};
|
||||
|
||||
const struct pmu_table_entry {_pending_events_tblname}[] = {{
|
||||
static const struct pmu_table_entry {_pending_events_tblname}[] = {{
|
||||
""")
|
||||
for (pmu, tbl_pmu) in sorted(pmus):
|
||||
pmu_name = f"{pmu}\\000"
|
||||
|
|
@ -605,7 +605,7 @@ def print_pending_metrics() -> None:
|
|||
_args.output_file.write(f"""
|
||||
}};
|
||||
|
||||
const struct pmu_table_entry {_pending_metrics_tblname}[] = {{
|
||||
static const struct pmu_table_entry {_pending_metrics_tblname}[] = {{
|
||||
""")
|
||||
for (pmu, tbl_pmu) in sorted(pmus):
|
||||
pmu_name = f"{pmu}\\000"
|
||||
|
|
@ -730,7 +730,7 @@ struct pmu_events_map {
|
|||
* Global table mapping each known CPU for the architecture to its
|
||||
* table of PMU events.
|
||||
*/
|
||||
const struct pmu_events_map pmu_events_map[] = {
|
||||
static const struct pmu_events_map pmu_events_map[] = {
|
||||
""")
|
||||
for arch in archs:
|
||||
if arch == 'test':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user