Lines Matching defs:bv

757 			struct bt_var *bv = ba->ba_value;
763 map = (struct map *)bv->bv_value;
768 map_print(map, SIZE_T_MAX, bv_name(bv));
770 hist_print((struct hist *)map, bv_name(bv));
772 bv->bv_value = NULL;
947 * In this case 'h' is represented by `bv' and '(min, max, step)' by `brange'.
954 struct bt_var *bv = bhist->ba_value;
965 debug("hist=%p '%s' value=%lu out of range\n", bv->bv_value,
966 bv_name(bv), ba2long(bval, dtev));
969 debug("hist=%p '%s' increment bucket '%s'\n", bv->bv_value,
970 bv_name(bv), bucket);
973 hist = (struct hist *)bv->bv_value;
980 bv_name(bv), brange, bucket, bval);
982 bv->bv_value = (struct bt_arg *)hist;
983 bv->bv_type = B_VT_HIST;
994 struct bt_var *bv = ba->ba_value;
1000 map = (struct map *)bv->bv_value;
1004 if (bv->bv_type != B_VT_MAP && bv->bv_type != B_VT_HIST)
1008 bv->bv_value = NULL;
1010 debug("map=%p '%s' clear\n", map, bv_name(bv));
1016 * In this case 'map' is represented by `bv' and 'key' by `bkey'.
1022 struct bt_var *bv = bmap->ba_value;
1029 map = (struct map *)bv->bv_value;
1035 debug("map=%p '%s' delete key=%p '%s'\n", map, bv_name(bv), bkey, hash);
1043 * In this case 'map' is represented by `bv', 'key' by `bkey' and
1051 struct bt_var *bv = bmap->ba_value;
1063 map = (struct map *)bv->bv_value;
1097 bv_name(bv), bkey, hash, bval);
1099 bv->bv_value = (struct bt_arg *)map;
1100 bv->bv_type = B_VT_MAP;
1113 struct bt_var *bv = ba->ba_value;
1133 map = (struct map *)bv->bv_value;
1137 debug("map=%p '%s' print (top=%d)\n", bv->bv_value, bv_name(bv), top);
1139 if (bv->bv_type == B_VT_MAP)
1140 map_print(map, top, bv_name(bv));
1141 else if (bv->bv_type == B_VT_HIST)
1142 hist_print((struct hist *)map, bv_name(bv));
1160 struct bt_var *bvar, *bv = bs->bs_var;
1167 bv->bv_value = ba;
1168 bv->bv_type = B_VT_STR;
1171 bv->bv_value = ba;
1172 bv->bv_type = B_VT_LONG;
1176 bv->bv_type = bvar->bv_type;
1177 bv->bv_value = bvar->bv_value;
1184 bv->bv_value = 0;
1186 bv->bv_value = map_get(map, ba2hash(ba->ba_key, dtev));
1187 bv->bv_type = B_VT_LONG; /* XXX should we type map? */
1190 bv->bv_value = baeval(ba, dtev);
1191 bv->bv_type = B_VT_TUPLE;
1200 bv->bv_value = baeval(ba, dtev);
1201 bv->bv_type = B_VT_LONG;
1208 bv->bv_value = baeval(ba, dtev);
1209 bv->bv_type = B_VT_STR;
1215 debug("bv=%p var '%s' store (%p)='%s'\n", bv, bv_name(bv), bv->bv_value,
1216 ba2str(bv->bv_value, dtev));
1295 struct bt_var *bv = ba->ba_value;
1301 map = (struct map *)bv->bv_value;
1305 if (bv->bv_type != B_VT_MAP && bv->bv_type != B_VT_HIST)
1310 debug("map=%p '%s' zero\n", map, bv_name(bv));
1316 struct bt_var *bv = ba->ba_value;
1319 debug("bv=%p read '%s' (%p)\n", bv, bv_name(bv), bv->bv_value);
1322 if (bv->bv_value == NULL)
1325 return bv->bv_value;
1708 struct bt_var *bv;
1723 bv = ba->ba_value;
1725 if (bv->bv_value == NULL)
1727 val = ba2long(map_get((struct map *)bv->bv_value,
1771 struct bt_var *bv;
1791 bv = ba->ba_value;
1793 if (bv->bv_value == NULL) {
1797 ba = bv->bv_value;
1857 bv = ba->ba_value;
1859 if (bv->bv_value == NULL) {
1863 str = ba2str(map_get((struct map *)bv->bv_value,