void pmu_exit(void) { if (pmu_model) { exit_driverfs(); pmu_model = NULL; } }
void oprofile_arch_exit(void) { if (op_arm_model) { exit_driverfs(); op_arm_model = NULL; } }
void oprofile_arch_exit(void) { if (op_arm_model) { exit_driverfs(); op_arm_model = NULL; } kfree(counter_config); }
void xenoprofile_exit(void) { if (using_xenoprof) exit_driverfs(); xenoprof_arch_unmap_shared_buffer(&shared_buffer); if (xenoprof_is_primary) { unmap_passive_list(); WARN_ON(HYPERVISOR_xenoprof_op(XENOPROF_shutdown, NULL)); } }
void __exit oprofile_arch_exit(void) { if (using_xenoprof) exit_driverfs(); if (shared_buffer) { vunmap(shared_buffer); shared_buffer = NULL; } if (is_primary) HYPERVISOR_xenoprof_op(XENOPROF_shutdown, NULL); }
void oprofile_perf_exit(void) { int cpu, id; struct perf_event *event; for_each_possible_cpu(cpu) { for (id = 0; id < num_counters; ++id) { event = perf_events[cpu][id]; if (event) perf_event_release_kernel(event); } kfree(perf_events[cpu]); } kfree(counter_config); exit_driverfs(); }
void nmi_exit(void) { if (using_nmi) exit_driverfs(); }