Mercurial > illumos > illumos-gate
changeset 14113:01cb14af742b
3988 kstat(1) woefully inefficient on fully specified kstats
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Gordon Ross <gwr@nexenta.com>
author | Bryan Cantrill <bryan@joyent.com> |
---|---|
date | Thu, 13 Jun 2013 19:58:31 +0000 |
parents | 065756628914 |
children | b92428ed8d2a |
files | usr/src/cmd/stat/kstat/kstat.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/stat/kstat/kstat.c Sat Jul 27 11:11:23 2013 -0700 +++ b/usr/src/cmd/stat/kstat/kstat.c Thu Jun 13 19:58:31 2013 +0000 @@ -23,6 +23,7 @@ * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013 David Hoeppner. All rights reserved. * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + * Copyright (c) 2013, Joyent, Inc. All rights reserved. */ /* @@ -621,7 +622,7 @@ skip = B_TRUE; selector = list_head(&selector_list); while (selector != NULL) { - if (ks_match(kp->ks_module, &selector->ks_module) || + if (ks_match(kp->ks_module, &selector->ks_module) && ks_match(kp->ks_name, &selector->ks_name)) { skip = B_FALSE; break;