Lines Matching defs:coargs

803 	callout_data_t *coargs = (callout_data_t *)priv;
808 if ((coargs == NULL) || (co == NULL)) {
812 if ((coargs->flags & COF_FREE) && !(co->c_xid & CALLOUT_ID_FREE)) {
819 if (!(coargs->flags & COF_FREE) && (co->c_xid & CALLOUT_ID_FREE)) {
826 if ((coargs->flags & COF_FUNC) &&
827 (coargs->funcaddr != (uintptr_t)co->c_func)) {
830 if ((coargs->flags & COF_PARAM) &&
831 (coargs->param != (uintptr_t)co->c_arg)) {
834 if (!(coargs->flags & COF_LONG) && (co->c_xid & CALLOUT_LONGTERM)) {
837 if (!(coargs->flags & COF_SHORT) && !(co->c_xid & CALLOUT_LONGTERM)) {
840 if ((coargs->flags & COF_EXEC) && !(co->c_xid & CALLOUT_EXECUTING)) {
844 if (coargs->flags & COF_BYIDH) {
845 if (!(coargs->flags & COF_FREE)) {
847 if (mdb_vread(&coargs->exp, sizeof (hrtime_t),
852 coargs->exp = 0;
855 if (mdb_vread(&coargs->list_flags, sizeof (int),
860 coargs->list_flags = 0;
864 coargs->exp = 0;
865 coargs->list_flags = 0;
867 if (coargs->exp != 0) {
868 if ((coargs->flags & COF_TIME) &&
869 (coargs->exp != coargs->time)) {
872 if ((coargs->flags & COF_BEFORE) &&
873 (coargs->exp > coargs->btime)) {
876 if ((coargs->flags & COF_AFTER) &&
877 (coargs->exp < coargs->atime)) {
882 list_flags = coargs->list_flags;
883 if ((coargs->flags & COF_HIRES) && (coargs->flags & COF_ABS)) {
890 if ((coargs->flags & COF_HIRES) &&
894 if ((coargs->flags & COF_ABS) &&
905 if ((coargs->flags & COF_HEAP) &&
910 if ((coargs->flags & COF_QUEUE) &&
916 #define callout_table_mask ((1 << coargs->ctbits) - 1)
921 if ((coargs->flags & COF_CHDR) && !(coargs->flags & COF_ADDR)) {
927 if (!(coargs->flags & COF_VERBOSE)) {
930 } else if (coargs->flags & COF_BYIDH) {
935 if (coargs->flags & COF_LONGLIST) {
942 coargs->flags &= ~COF_CHDR;
943 coargs->flags |= (COF_THDR | COF_LHDR);
946 if (!(coargs->flags & COF_ADDR)) {
947 if (!(coargs->flags & COF_VERBOSE)) {
951 (coargs->flags & COF_EXPREL) ?
952 coargs->exp - coargs->now : coargs->exp);
953 } else if (coargs->flags & COF_BYIDH) {
955 (coargs->flags & COF_EXPREL) ?
956 coargs->exp - coargs->now : coargs->exp);
958 list_flags = coargs->list_flags;
965 if (coargs->flags & COF_LONGLIST) {
985 callout_data_t *coargs = (callout_data_t *)priv;
990 if ((coargs == NULL) || (cl == NULL)) {
994 coargs->exp = cl->cl_expiration;
995 coargs->list_flags = cl->cl_flags;
996 if ((coargs->flags & COF_FREE) &&
1004 if (!(coargs->flags & COF_FREE) &&
1012 if ((coargs->flags & COF_TIME) &&
1013 (cl->cl_expiration != coargs->time)) {
1016 if ((coargs->flags & COF_BEFORE) &&
1017 (cl->cl_expiration > coargs->btime)) {
1020 if ((coargs->flags & COF_AFTER) &&
1021 (cl->cl_expiration < coargs->atime)) {
1024 if (!(coargs->flags & COF_EMPTY) &&
1029 if ((coargs->flags & COF_HIRES) && (coargs->flags & COF_ABS)) {
1035 if ((coargs->flags & COF_HIRES) &&
1039 if ((coargs->flags & COF_ABS) &&
1045 if ((coargs->flags & COF_HEAP) &&
1046 !(coargs->list_flags & CALLOUT_LIST_FLAG_HEAPED)) {
1050 if ((coargs->flags & COF_QUEUE) &&
1051 !(coargs->list_flags & CALLOUT_LIST_FLAG_QUEUED)) {
1055 if ((coargs->flags & COF_LHDR) && !(coargs->flags & COF_ADDR) &&
1056 (coargs->flags & (COF_LIST | COF_VERBOSE))) {
1057 if (!(coargs->flags & COF_VERBOSE)) {
1064 if (coargs->flags & COF_LONGLIST) {
1069 coargs->flags &= ~COF_LHDR;
1070 coargs->flags |= (COF_THDR | COF_CHDR);
1072 if (coargs->flags & (COF_LIST | COF_VERBOSE)) {
1073 if (!(coargs->flags & COF_ADDR)) {
1074 if (!(coargs->flags & COF_VERBOSE)) {
1076 TABLE_TO_SEQID(coargs->ndx),
1077 co_typenames[coargs->ndx &
1081 list_flags = coargs->list_flags;
1083 (coargs->flags & COF_EXPREL) ?
1084 coargs->exp - coargs->now : coargs->exp,
1089 coargs->bucket, cl->cl_callouts.ch_head);
1091 if (coargs->flags & COF_LONGLIST) {
1100 if (coargs->flags & COF_LIST) {
1109 if (coargs->flags & COF_FREE) {
1114 if (coargs->flags & COF_VERBOSE) {
1122 if (mdb_pwalk("callouts_bytime", callouts_cb, coargs,
1127 if (coargs->flags & COF_VERBOSE) {
1138 callout_data_t *coargs = (callout_data_t *)priv;
1146 if ((coargs == NULL) || (ct == NULL) || (coargs->co_table == NULL)) {
1150 index = ((char *)addr - (char *)coargs->co_table) /
1155 if ((coargs->flags & COF_SEQID) && (coargs->seqid != seqid)) {
1159 if (!(coargs->flags & COF_REAL) && (cotype == CALLOUT_REALTIME)) {
1163 if (!(coargs->flags & COF_NORM) && (cotype == CALLOUT_NORMAL)) {
1167 if (!(coargs->flags & COF_EMPTY) && (
1172 if ((coargs->flags & COF_THDR) && !(coargs->flags & COF_ADDR) &&
1173 (coargs->flags & (COF_TABLE | COF_VERBOSE))) {
1177 coargs->flags &= ~COF_THDR;
1178 coargs->flags |= (COF_LHDR | COF_CHDR);
1179 if (coargs->flags & COF_LONGLIST) {
1188 if (coargs->flags & (COF_TABLE | COF_VERBOSE)) {
1189 if (!(coargs->flags & COF_ADDR)) {
1194 if (coargs->flags & COF_LONGLIST) {
1211 if (coargs->flags & COF_TABLE) {
1216 coargs->ndx = index;
1217 if (coargs->flags & COF_VERBOSE) {
1221 if (!(coargs->flags & COF_BYIDH)) {
1223 if (coargs->flags & COF_FREE) {
1225 coargs->bucket = 0;
1229 if (mdb_pwalk("callout_list", callout_list_cb, coargs,
1239 coargs->bucket = -1;
1241 coargs, (uintptr_t)clptr) == -1) {
1250 coargs->bucket = -1;
1252 coargs, (uintptr_t)clptr) == -1) {
1268 coargs->bucket = i;
1271 coargs, (uintptr_t)clptr) == -1) {
1280 if (coargs->flags & COF_FREE) {
1282 coargs->bucket = 0;
1286 if (mdb_pwalk("callouts_byid", callouts_cb, coargs,
1302 coargs->bucket = i;
1310 coargs, (uintptr_t)coptr) == -1) {
1318 if (coargs->flags & COF_VERBOSE) {
1328 callout_common_init(callout_data_t *coargs)
1331 if (mdb_readvar(&(coargs->co_table), "callout_table") == -1) {
1336 if (mdb_readsym(&(coargs->now), sizeof (hrtime_t), "hrtime_last") !=
1338 if (mdb_readsym(&(coargs->now), sizeof (hrtime_t),
1345 if (mdb_readvar(&(coargs->ctbits), "callout_table_bits") == -1) {
1349 if (mdb_readvar(&(coargs->nsec_per_tick), "nsec_per_tick") == -1) {
1365 callout_data_t coargs;
1373 coargs.flags = COF_DEFAULT;
1375 coargs.seqid = -1;
1378 'r', MDB_OPT_CLRBITS, COF_NORM, &coargs.flags,
1379 'n', MDB_OPT_CLRBITS, COF_REAL, &coargs.flags,
1380 'l', MDB_OPT_CLRBITS, COF_SHORT, &coargs.flags,
1381 's', MDB_OPT_CLRBITS, COF_LONG, &coargs.flags,
1382 'x', MDB_OPT_SETBITS, COF_EXEC, &coargs.flags,
1383 'h', MDB_OPT_SETBITS, COF_HIRES, &coargs.flags,
1384 'B', MDB_OPT_SETBITS, COF_ABS, &coargs.flags,
1385 'E', MDB_OPT_SETBITS, COF_EMPTY, &coargs.flags,
1389 't', MDB_OPT_UINTPTR_SET, &tflag, (uintptr_t *)&coargs.time,
1390 'a', MDB_OPT_UINTPTR_SET, &aflag, (uintptr_t *)&coargs.atime,
1391 'b', MDB_OPT_UINTPTR_SET, &bflag, (uintptr_t *)&coargs.btime,
1395 'T', MDB_OPT_SETBITS, COF_TABLE, &coargs.flags,
1396 'D', MDB_OPT_SETBITS, COF_EXPREL, &coargs.flags,
1397 'L', MDB_OPT_SETBITS, COF_LIST, &coargs.flags,
1398 'V', MDB_OPT_SETBITS, COF_VERBOSE, &coargs.flags,
1399 'v', MDB_OPT_SETBITS, COF_LONGLIST, &coargs.flags,
1400 'i', MDB_OPT_SETBITS, COF_BYIDH, &coargs.flags,
1401 'F', MDB_OPT_SETBITS, COF_FREE, &coargs.flags,
1402 'H', MDB_OPT_SETBITS, COF_HEAP, &coargs.flags,
1403 'Q', MDB_OPT_SETBITS, COF_QUEUE, &coargs.flags,
1404 'A', MDB_OPT_SETBITS, COF_ADDR, &coargs.flags,
1410 if ((retval = callout_common_init(&coargs)) != DCMD_OK) {
1416 coargs.time *= coargs.nsec_per_tick;
1417 coargs.atime *= coargs.nsec_per_tick;
1418 coargs.btime *= coargs.nsec_per_tick;
1422 coargs.time += coargs.now;
1423 coargs.atime += coargs.now;
1424 coargs.btime += coargs.now;
1432 coargs.flags |= COF_SEQID;
1433 coargs.seqid = (int)Stmp;
1441 if (coargs.flags & COF_SEQID) {
1445 coargs.cpu = (cpu_t *)Ctmp;
1446 if (mdb_vread(&coargs.seqid, sizeof (processorid_t),
1447 (uintptr_t)&(coargs.cpu->cpu_seqid)) == -1) {
1451 coargs.flags |= COF_SEQID;
1454 if (!(coargs.flags & (COF_REAL | COF_NORM))) {
1455 coargs.flags |= COF_REAL | COF_NORM;
1457 if (!(coargs.flags & (COF_LONG | COF_SHORT))) {
1458 coargs.flags |= COF_LONG | COF_SHORT;
1465 coargs.flags |= COF_TIME;
1468 coargs.flags |= COF_AFTER;
1471 coargs.flags |= COF_BEFORE;
1473 if ((aflag && bflag) && (coargs.btime <= coargs.atime)) {
1479 if ((coargs.flags & COF_HEAP) && (coargs.flags & COF_QUEUE)) {
1488 coargs.funcaddr = mdb_strtoull(funcname);
1490 coargs.funcaddr = sym.st_value;
1492 coargs.flags |= COF_FUNC;
1499 coargs.param = mdb_strtoull(paramstr);
1501 coargs.param = sym.st_value;
1503 coargs.flags |= COF_PARAM;
1515 coargs.flags |= (COF_REAL | COF_NORM);
1518 if (DCMD_HDRSPEC(flags) || (coargs.flags & COF_VERBOSE)) {
1519 coargs.flags |= COF_THDR | COF_LHDR | COF_CHDR;
1521 if (coargs.flags & COF_FREE) {
1522 coargs.flags |= COF_EMPTY;
1524 if (!(coargs.flags & COF_LIST)) {
1525 coargs.flags |= COF_BYIDH;
1530 if (mdb_pwalk("callout_table", callout_t_cb, &coargs, addr) == -1) {
1545 callout_data_t coargs;
1558 coargs.flags = COF_DEFAULT | COF_BYIDH;
1560 'd', MDB_OPT_SETBITS, COF_DECODE, &coargs.flags,
1561 'v', MDB_OPT_SETBITS, COF_LONGLIST, &coargs.flags,
1578 coargs.flags |= COF_CHDR;
1583 if ((retval = callout_common_init(&coargs)) != DCMD_OK) {
1588 #define callout_table_mask ((1 << coargs.ctbits) - 1)
1589 #define callout_table_bits coargs.ctbits
1590 #define nsec_per_tick coargs.nsec_per_tick
1603 if (coargs.flags & COF_DECODE) {
1618 ctptr = coargs.co_table + tableid;
1644 coargs.ndx = tableid;
1645 coargs.bucket = idhash;
1648 if (mdb_pwalk("callouts_byid", callouts_cb, &coargs,