kern_intr.c (157815) | kern_intr.c (160312) |
---|---|
1/*- 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/kern/kern_intr.c 157815 2006-04-17 18:20:38Z jhb $"); | 28__FBSDID("$FreeBSD: head/sys/kern/kern_intr.c 160312 2006-07-12 21:22:44Z jhb $"); |
29 30#include "opt_ddb.h" 31 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/rtprio.h> 36#include <sys/systm.h> --- 863 unchanged lines hidden (view full) --- 900} 901 902/* 903 * Dump data about interrupt handlers 904 */ 905DB_SHOW_COMMAND(intr, db_show_intr) 906{ 907 struct intr_event *ie; | 29 30#include "opt_ddb.h" 31 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/rtprio.h> 36#include <sys/systm.h> --- 863 unchanged lines hidden (view full) --- 900} 901 902/* 903 * Dump data about interrupt handlers 904 */ 905DB_SHOW_COMMAND(intr, db_show_intr) 906{ 907 struct intr_event *ie; |
908 int quit, all, verbose; | 908 int all, verbose; |
909 | 909 |
910 quit = 0; | |
911 verbose = index(modif, 'v') != NULL; 912 all = index(modif, 'a') != NULL; | 910 verbose = index(modif, 'v') != NULL; 911 all = index(modif, 'a') != NULL; |
913 db_setup_paging(db_simple_pager, &quit, db_lines_per_page); | |
914 TAILQ_FOREACH(ie, &event_list, ie_list) { 915 if (!all && TAILQ_EMPTY(&ie->ie_handlers)) 916 continue; 917 db_dump_intr_event(ie, verbose); | 912 TAILQ_FOREACH(ie, &event_list, ie_list) { 913 if (!all && TAILQ_EMPTY(&ie->ie_handlers)) 914 continue; 915 db_dump_intr_event(ie, verbose); |
916 if (db_pager_quit) 917 break; |
|
918 } 919} 920#endif /* DDB */ 921 922/* 923 * Start standard software interrupt threads 924 */ 925static void --- 45 unchanged lines hidden (view full) --- 971#ifdef DDB 972/* 973 * DDB command to dump the interrupt statistics. 974 */ 975DB_SHOW_COMMAND(intrcnt, db_show_intrcnt) 976{ 977 u_long *i; 978 char *cp; | 918 } 919} 920#endif /* DDB */ 921 922/* 923 * Start standard software interrupt threads 924 */ 925static void --- 45 unchanged lines hidden (view full) --- 971#ifdef DDB 972/* 973 * DDB command to dump the interrupt statistics. 974 */ 975DB_SHOW_COMMAND(intrcnt, db_show_intrcnt) 976{ 977 u_long *i; 978 char *cp; |
979 int quit; | |
980 981 cp = intrnames; | 979 980 cp = intrnames; |
982 db_setup_paging(db_simple_pager, &quit, db_lines_per_page); 983 for (i = intrcnt, quit = 0; i != eintrcnt && !quit; i++) { | 981 for (i = intrcnt; i != eintrcnt && !db_pager_quit; i++) { |
984 if (*cp == '\0') 985 break; 986 if (*i != 0) 987 db_printf("%s\t%lu\n", cp, *i); 988 cp += strlen(cp) + 1; 989 } 990} 991#endif | 982 if (*cp == '\0') 983 break; 984 if (*i != 0) 985 db_printf("%s\t%lu\n", cp, *i); 986 cp += strlen(cp) + 1; 987 } 988} 989#endif |