Fix the spelling of cov_unregister_pc.

When unregistering kcov from the coverage interface we should use the
unregister function, not the register function.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2019-02-08 16:18:17 +00:00
parent 41f6c3f0e7
commit c50c26aa07
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343913

View File

@ -469,8 +469,8 @@ kcov_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag __unused,
KASSERT(active_count > 0, ("%s: Open count is zero", __func__));
active_count--;
if (active_count == 0) {
cov_register_pc(&trace_pc);
cov_register_cmp(&trace_cmp);
cov_unregister_pc();
cov_unregister_cmp();
}
td->td_kcov_info = NULL;
@ -505,8 +505,8 @@ kcov_thread_dtor(void *arg __unused, struct thread *td)
KASSERT(active_count > 0, ("%s: Open count is zero", __func__));
active_count--;
if (active_count == 0) {
cov_register_pc(&trace_pc);
cov_register_cmp(&trace_cmp);
cov_unregister_pc();
cov_unregister_cmp();
}
td->td_kcov_info = NULL;
if (info->state != KCOV_STATE_DYING) {