Searched refs:txn_flags (Results 1 - 7 of 7) sorted by relevance

/linux-4.4.14/arch/s390/kernel/
H A Dperf_cpum_cf.c75 unsigned int txn_flags; member in struct:cpu_hw_events
86 .txn_flags = 0,
543 if (!(cpuhw->txn_flags & PERF_PMU_TXN_ADD)) cpumf_pmu_add()
586 static void cpumf_pmu_start_txn(struct pmu *pmu, unsigned int txn_flags) cpumf_pmu_start_txn() argument
590 WARN_ON_ONCE(cpuhw->txn_flags); /* txn already in flight */ cpumf_pmu_start_txn()
592 cpuhw->txn_flags = txn_flags; cpumf_pmu_start_txn()
593 if (txn_flags & ~PERF_PMU_TXN_ADD) cpumf_pmu_start_txn()
607 unsigned int txn_flags; cpumf_pmu_cancel_txn() local
610 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ cpumf_pmu_cancel_txn()
612 txn_flags = cpuhw->txn_flags; cpumf_pmu_cancel_txn()
613 cpuhw->txn_flags = 0; cpumf_pmu_cancel_txn()
614 if (txn_flags & ~PERF_PMU_TXN_ADD) cpumf_pmu_cancel_txn()
632 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ cpumf_pmu_commit_txn()
634 if (cpuhw->txn_flags & ~PERF_PMU_TXN_ADD) { cpumf_pmu_commit_txn()
635 cpuhw->txn_flags = 0; cpumf_pmu_commit_txn()
645 cpuhw->txn_flags = 0; cpumf_pmu_commit_txn()
/linux-4.4.14/arch/sparc/kernel/
H A Dperf_event.c111 unsigned int txn_flags; member in struct:cpu_hw_events
1382 if (cpuc->txn_flags & PERF_PMU_TXN_ADD) sparc_pmu_add()
1497 static void sparc_pmu_start_txn(struct pmu *pmu, unsigned int txn_flags) sparc_pmu_start_txn() argument
1501 WARN_ON_ONCE(cpuhw->txn_flags); /* txn already in flight */ sparc_pmu_start_txn()
1503 cpuhw->txn_flags = txn_flags; sparc_pmu_start_txn()
1504 if (txn_flags & ~PERF_PMU_TXN_ADD) sparc_pmu_start_txn()
1518 unsigned int txn_flags; sparc_pmu_cancel_txn() local
1520 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ sparc_pmu_cancel_txn()
1522 txn_flags = cpuhw->txn_flags; sparc_pmu_cancel_txn()
1523 cpuhw->txn_flags = 0; sparc_pmu_cancel_txn()
1524 if (txn_flags & ~PERF_PMU_TXN_ADD) sparc_pmu_cancel_txn()
1543 WARN_ON_ONCE(!cpuc->txn_flags); /* no txn in flight */ sparc_pmu_commit_txn()
1545 if (cpuc->txn_flags & ~PERF_PMU_TXN_ADD) { sparc_pmu_commit_txn()
1546 cpuc->txn_flags = 0; sparc_pmu_commit_txn()
1556 cpuc->txn_flags = 0; sparc_pmu_commit_txn()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dperf_event.c1191 if (cpuc->txn_flags & PERF_PMU_TXN_ADD) x86_pmu_add()
1342 if (cpuc->txn_flags & PERF_PMU_TXN_ADD) x86_pmu_del()
1769 static void x86_pmu_start_txn(struct pmu *pmu, unsigned int txn_flags) x86_pmu_start_txn() argument
1773 WARN_ON_ONCE(cpuc->txn_flags); /* txn already in flight */ x86_pmu_start_txn()
1775 cpuc->txn_flags = txn_flags; x86_pmu_start_txn()
1776 if (txn_flags & ~PERF_PMU_TXN_ADD) x86_pmu_start_txn()
1790 unsigned int txn_flags; x86_pmu_cancel_txn() local
1793 WARN_ON_ONCE(!cpuc->txn_flags); /* no txn in flight */ x86_pmu_cancel_txn()
1795 txn_flags = cpuc->txn_flags; x86_pmu_cancel_txn()
1796 cpuc->txn_flags = 0; x86_pmu_cancel_txn()
1797 if (txn_flags & ~PERF_PMU_TXN_ADD) x86_pmu_cancel_txn()
1822 WARN_ON_ONCE(!cpuc->txn_flags); /* no txn in flight */ x86_pmu_commit_txn()
1824 if (cpuc->txn_flags & ~PERF_PMU_TXN_ADD) { x86_pmu_commit_txn()
1825 cpuc->txn_flags = 0; x86_pmu_commit_txn()
1844 cpuc->txn_flags = 0; x86_pmu_commit_txn()
H A Dperf_event.h199 unsigned int txn_flags; member in struct:cpu_hw_events
/linux-4.4.14/arch/powerpc/perf/
H A Dcore-book3s.c51 unsigned int txn_flags; member in struct:cpu_hw_events
1444 if (cpuhw->txn_flags & PERF_PMU_TXN_ADD) power_pmu_add()
1594 static void power_pmu_start_txn(struct pmu *pmu, unsigned int txn_flags) power_pmu_start_txn() argument
1598 WARN_ON_ONCE(cpuhw->txn_flags); /* txn already in flight */ power_pmu_start_txn()
1600 cpuhw->txn_flags = txn_flags; power_pmu_start_txn()
1601 if (txn_flags & ~PERF_PMU_TXN_ADD) power_pmu_start_txn()
1616 unsigned int txn_flags; power_pmu_cancel_txn() local
1618 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ power_pmu_cancel_txn()
1620 txn_flags = cpuhw->txn_flags; power_pmu_cancel_txn()
1621 cpuhw->txn_flags = 0; power_pmu_cancel_txn()
1622 if (txn_flags & ~PERF_PMU_TXN_ADD) power_pmu_cancel_txn()
1642 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ power_pmu_commit_txn()
1644 if (cpuhw->txn_flags & ~PERF_PMU_TXN_ADD) { power_pmu_commit_txn()
1645 cpuhw->txn_flags = 0; power_pmu_commit_txn()
1659 cpuhw->txn_flags = 0; power_pmu_commit_txn()
H A Dhv-24x7.c1245 int txn_flags; h_24x7_event_read() local
1247 txn_flags = __this_cpu_read(hv_24x7_txn_flags); h_24x7_event_read()
1256 if (txn_flags & PERF_PMU_TXN_READ) { h_24x7_event_read()
1347 * and dont need/support ADD transactions. Clear ->txn_flags but otherwise
1361 int i, ret, txn_flags; h_24x7_event_commit_txn() local
1364 txn_flags = __this_cpu_read(hv_24x7_txn_flags); h_24x7_event_commit_txn()
1365 WARN_ON_ONCE(!txn_flags); h_24x7_event_commit_txn()
1368 if (txn_flags & ~PERF_PMU_TXN_READ) h_24x7_event_commit_txn()
/linux-4.4.14/include/linux/
H A Dperf_event.h338 void (*start_txn) (struct pmu *pmu, unsigned int txn_flags);

Completed in 324 milliseconds