From 4d1ae9a9afe9c610753cc0eca364689e354c1077 Mon Sep 17 00:00:00 2001 From: alnsn Date: Sat, 27 Oct 2012 22:38:07 +0000 Subject: [PATCH] Report jit'ed bpf fildes in fstat. --- usr.bin/fstat/misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/fstat/misc.c b/usr.bin/fstat/misc.c index a1db78bd2f07..95cd33c387d0 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 -__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 @@ -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)