diff options
author | kib <kib@FreeBSD.org> | 2018-03-21 19:33:00 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2018-03-21 19:33:00 +0000 |
commit | 41fc60e6e369e0bbdb6407f32b746754b3454638 (patch) | |
tree | 24c24358c8d503cd6fed4c114d06376ff613dda7 /lib | |
parent | 78494a30497ad2992b01c61c1b116bc605ecb9e9 (diff) | |
download | FreeBSD-src-41fc60e6e369e0bbdb6407f32b746754b3454638.zip FreeBSD-src-41fc60e6e369e0bbdb6407f32b746754b3454638.tar.gz |
MFC r328087 (by fabient):
Fix pmcstat exit from kernel introduced by r325275.
PR: 223689
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpmc/pmclog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpmc/pmclog.c b/lib/libpmc/pmclog.c index d9b32f7..8620a0c 100644 --- a/lib/libpmc/pmclog.c +++ b/lib/libpmc/pmclog.c @@ -335,6 +335,8 @@ pmclog_get_event(void *cookie, char **data, ssize_t *len, ev->pl_u.pl_cc.pl_pc[npc] = (uintfptr_t) 0; break; case PMCLOG_TYPE_CLOSELOG: + ev->pl_state = PMCLOG_EOF; + return (-1); case PMCLOG_TYPE_DROPNOTIFY: /* nothing to do */ break; |