Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2024 12:28:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278826] [hpet] cdev->si_refcount leakage when enable hpet as timecounter hardware
Message-ID:  <bug-278826-227-bpI8Pw3xhG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278826-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278826-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278826

--- Comment #6 from Austin Zhang <austin.zhang@dell.com> ---
(In reply to Konstantin Belousov from comment #5)

will you also check si_refcount? I believe si_threadcount is correct but
si_refcount is not.

below is my dtrace output:
[root@freebsd-main ~]# dtrace -n 'fbt::dev_ref:entry {printf("[%s]: invoke
dev_ref: %s, refcount:%d threadcount:%d", execname, args[0]->si_name,
args[0]->si_refcount, args[0]->si_threadcount)}'
dtrace: description 'fbt::dev_ref:entry ' matched 1 probe
CPU     ID                    FUNCTION:NAME
  1  43845                    dev_ref:entry [uname]: invoke dev_ref: hpet0,
refcount:42494 threadcount:2
  1  43845                    dev_ref:entry [sh]: invoke dev_ref: hpet0,
refcount:42495 threadcount:2
  1  43845                    dev_ref:entry [atrun]: invoke dev_ref: hpet0,
refcount:42496 threadcount:2

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278826-227-bpI8Pw3xhG>