Date: Wed, 28 Aug 2019 13:28:13 -0400 From: Ryan Stone <rysto32@gmail.com> To: FreeBSD Current <freebsd-current@freebsd.org> Subject: hwpmc: events don't seem to distinguish kernel and userland callchains anymore Message-ID: <CAFMmRNxj3sJWCHOOFQWayZ21%2Bx-md4C2%2BgxBaGCx2A2QryJOsg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Historically when processing callchain events from hwpmc, you could use PMC_CALLCHAIN_CPUFLAGS_TO_USERMODE(ev..pl_u.pl_cc.pl_cpuflags) to distinguish callchains that were captured in user mode from those captured in kernel mode. However, on 12.0-RELEASE and a month-old head, I have noticed that this macro never returns true anymore. Is there any way to make this distinction now, beyond an architecture-specific hack based off of the sample address?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNxj3sJWCHOOFQWayZ21%2Bx-md4C2%2BgxBaGCx2A2QryJOsg>