diff options
| author | alnsn <alnsn@NetBSD.org> | 2012-10-27 22:38:07 +0000 |
|---|---|---|
| committer | alnsn <alnsn@NetBSD.org> | 2012-10-27 22:38:07 +0000 |
| commit | 43f91cce6432cc9679397ccab5e42ffedeaef13a (patch) | |
| tree | 79d480c4c091905a6aea6a2730db48949b961e80 /usr.bin/fstat | |
| parent | 14c2ada889f2412f880aa443e2337db0d2bc7cd3 (diff) | |
Report jit'ed bpf fildes in fstat.
Diffstat (limited to 'usr.bin/fstat')
| -rw-r--r-- | usr.bin/fstat/misc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/fstat/misc.c b/usr.bin/fstat/misc.c index a1db78bd2f0..95cd33c387d 100644 --- a/usr.bin/fstat/misc.c +++ b/usr.bin/fstat/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.8 2011/09/10 18:34:40 christos Exp $ */ +/* $NetBSD: misc.c,v 1.9 2012/10/27 22:38:07 alnsn Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: misc.c,v 1.8 2011/09/10 18:34:40 christos Exp $"); +__RCSID("$NetBSD: misc.c,v 1.9 2012/10/27 22:38:07 alnsn Exp $"); #define _KMEMUSER #include <stdbool.h> @@ -118,6 +118,8 @@ p_bpf(struct file *f) (void)printf(", immed"); if (bpf.bd_seesent) (void)printf(", seesent"); + if (bpf.bd_jitcode != NULL) + (void)printf(", jit"); if (bpf.bd_async) (void)printf(", asyncgrp=%lu", (unsigned long)bpf.bd_pgid); if (bpf.bd_state == BPF_IDLE) |
