Home
last modified time | relevance | path

Searched refs:n_events (Results 1 – 9 of 9) sorted by relevance

/arch/alpha/kernel/
Dperf_event.c37 int n_events; member
399 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
411 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
456 n0 = cpuc->n_events; in alpha_pmu_add()
463 cpuc->n_events++; in alpha_pmu_add()
495 for (j = 0; j < cpuc->n_events; j++) { in alpha_pmu_del()
502 while (++j < cpuc->n_events) { in alpha_pmu_del()
514 cpuc->n_events--; in alpha_pmu_del()
736 if (cpuc->n_events > 0) { in alpha_pmu_enable()
839 for (j = 0; j < cpuc->n_events; j++) { in alpha_perf_event_irq_handler()
[all …]
/arch/tile/kernel/
Dperf_event.c51 int n_events; member
663 if (cpuc->n_events == tile_pmu->num_counters) in tile_pmu_add()
666 cpuc->event_list[cpuc->n_events] = event; in tile_pmu_add()
667 cpuc->n_events++; in tile_pmu_add()
715 for (i = 0; i < cpuc->n_events; i++) { in tile_pmu_del()
717 while (++i < cpuc->n_events) in tile_pmu_del()
719 --cpuc->n_events; in tile_pmu_del()
729 if (cpuc->n_events == 0) in tile_pmu_del()
/arch/sparc/kernel/
Dperf_event.c83 int n_events; member
927 for (i = 0; i < cpuc->n_events; i++) { in read_in_all_counters()
955 for (i = 0; i < cpuc->n_events; i++) { in calculate_single_pcr()
990 for (i = 0; i < cpuc->n_events; i++) { in calculate_multiple_pcrs()
1006 for (i = 0; i < cpuc->n_events; i++) { in calculate_multiple_pcrs()
1040 if (cpuc->n_events) in sparc_pmu_enable()
1073 for (i = 0; i < cpuc->n_events; i++) { in active_event_index()
1077 BUG_ON(i == cpuc->n_events); in active_event_index()
1122 for (i = 0; i < cpuc->n_events; i++) { in sparc_pmu_del()
1132 while (++i < cpuc->n_events) { in sparc_pmu_del()
[all …]
/arch/powerpc/perf/
Dcore-fsl-emb.c24 int n_events; member
257 ppc_set_pmu_inuse(cpuhw->n_events != 0); in fsl_emb_pmu_enable()
259 if (cpuhw->n_events > 0) { in fsl_emb_pmu_enable()
323 ++cpuhw->n_events; in fsl_emb_pmu_add()
384 cpuhw->n_events--; in fsl_emb_pmu_del()
Dcore-book3s.c30 int n_events; member
1299 if (cpuhw->n_events == 0) { in power_pmu_enable()
1330 if (ppmu->compute_mmcr(cpuhw->events, cpuhw->n_events, hwc_index, in power_pmu_enable()
1369 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_enable()
1382 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_enable()
1488 n0 = cpuhw->n_events; in power_pmu_add()
1523 ++cpuhw->n_events; in power_pmu_add()
1561 for (i = 0; i < cpuhw->n_events; ++i) { in power_pmu_del()
1563 while (++i < cpuhw->n_events) { in power_pmu_del()
1568 --cpuhw->n_events; in power_pmu_del()
[all …]
/arch/x86/events/intel/
Duncore.c344 if (box->n_events >= max_count) in uncore_collect_events()
347 n = box->n_events; in uncore_collect_events()
528 for (i = 0; i < box->n_events; i++) { in uncore_pmu_event_add()
553 else if (i < box->n_events) in uncore_pmu_event_add()
561 box->n_events = n; in uncore_pmu_event_add()
573 for (i = 0; i < box->n_events; i++) { in uncore_pmu_event_del()
577 for (++i; i < box->n_events; i++) in uncore_pmu_event_del()
580 --box->n_events; in uncore_pmu_event_del()
621 fake_box->n_events = n; in uncore_validate_group()
626 fake_box->n_events = n; in uncore_validate_group()
Duncore.h105 int n_events; member
/arch/x86/events/
Dcore.c973 n = cpuc->n_events; in collect_events()
1046 int n_running = cpuc->n_events - cpuc->n_added; in x86_pmu_enable()
1080 for (i = 0; i < cpuc->n_events; i++) { in x86_pmu_enable()
1195 n0 = cpuc->n_events; in x86_pmu_add()
1229 cpuc->n_events = n; in x86_pmu_add()
1380 for (i = 0; i < cpuc->n_events; i++) { in x86_pmu_del()
1385 if (WARN_ON_ONCE(i == cpuc->n_events)) /* called ->del() without ->add() ? */ in x86_pmu_del()
1389 if (i >= cpuc->n_events - cpuc->n_added) in x86_pmu_del()
1396 while (++i < cpuc->n_events) { in x86_pmu_del()
1400 --cpuc->n_events; in x86_pmu_del()
[all …]
Dperf_event.h182 int n_events; /* the # of events in the below arrays */ member