Page MenuHomeFreeBSD

D59229.id185238.diff
No OneTemporary

D59229.id185238.diff

diff --git a/sys/dev/hwpmc/hwpmc_x86.c b/sys/dev/hwpmc/hwpmc_x86.c
--- a/sys/dev/hwpmc/hwpmc_x86.c
+++ b/sys/dev/hwpmc/hwpmc_x86.c
@@ -107,7 +107,8 @@
return (n);
for (; n < nframes;) {
- if (pc == 0 || !PMC_IN_USERSPACE(pc))
+ /* fp == 0 is the ABI frame-chain sentinel below _start. */
+ if (pc == 0 || !PMC_IN_USERSPACE(pc) || fp == 0)
break;
*cc++ = pc; n++;

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 7, 12:03 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37480171
Default Alt Text
D59229.id185238.diff (383 B)

Event Timeline