Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | iidesc_dump(iidesc_t *ii) | ||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
iidesc_count_type(void *data, void *private) | iidesc_count_type(void *data, void *private) | ||||
{ | { | ||||
iidesc_t *ii = data; | iidesc_t *ii = data; | ||||
iitype_t match = (iitype_t)private; | iitype_t match = (iitype_t)(uintptr_t)private; | ||||
return (ii->ii_type == match); | return (ii->ii_type == match); | ||||
} | } | ||||
void | void | ||||
iidesc_stats(hash_t *ii) | iidesc_stats(hash_t *ii) | ||||
{ | { | ||||
printf("GFun: %5d SFun: %5d GVar: %5d SVar: %5d T %5d SOU: %5d\n", | printf("GFun: %5d SFun: %5d GVar: %5d SVar: %5d T %5d SOU: %5d\n", | ||||
hash_iter(ii, iidesc_count_type, (void *)II_GFUN), | hash_iter(ii, iidesc_count_type, (void *)II_GFUN), | ||||
hash_iter(ii, iidesc_count_type, (void *)II_SFUN), | hash_iter(ii, iidesc_count_type, (void *)II_SFUN), | ||||
hash_iter(ii, iidesc_count_type, (void *)II_GVAR), | hash_iter(ii, iidesc_count_type, (void *)II_GVAR), | ||||
hash_iter(ii, iidesc_count_type, (void *)II_SVAR), | hash_iter(ii, iidesc_count_type, (void *)II_SVAR), | ||||
hash_iter(ii, iidesc_count_type, (void *)II_TYPE), | hash_iter(ii, iidesc_count_type, (void *)II_TYPE), | ||||
hash_iter(ii, iidesc_count_type, (void *)II_SOU)); | hash_iter(ii, iidesc_count_type, (void *)II_SOU)); | ||||
} | } |