Home | History | Annotate | Download | only in libctf

Lines Matching refs:hval

572   const char *hval = NULL;
580 #define ADD_CITER(citers, hval) \
589 if (ctf_dynset_cinsert (citers, hval) < 0) \
611 if ((hval = intern (fp, strdup (hashbuf))) == NULL)
626 return hval;
713 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num, child_type,
719 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "referenced type",
721 citer = hval;
741 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
748 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "sliced type",
750 citer = hval;
774 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
781 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "array contents",
783 ADD_CITER (citers, hval);
785 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
792 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "array index",
796 ADD_CITER (citers, hval);
812 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
819 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "func return",
825 ADD_CITER (citers, hval);
842 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
850 ctf_dedup_sha1_add (&hash, hval, strlen (hval
852 ADD_CITER (citers, hval);
901 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
909 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "member hash",
913 ADD_CITER (citers, hval);
928 if ((hval = intern (fp, strdup (hashbuf))) == NULL)
944 if (ctf_dynset_cinsert (citer_hashes, hval) < 0)
959 if (ctf_dynset_exists (citer_hashes, hval, NULL))
961 if (ctf_dynset_cinsert (citer_hashes, hval) < 0)
969 return hval;
1025 const char *hval = NULL;
1083 if ((hval = ctf_dynhash_lookup (d->cd_type_hashes, type_id)) != NULL)
1087 type, hval);
1090 decorated, hval);
1092 return hval;
1102 if ((hval = ctf_dedup_rhash_type (fp, input, inputs, input_num,
1115 type_id, name ? name : "", hval);
1118 if (ctf_dynhash_cinsert (d->cd_type_hashes, type_id, hval) < 0)
1125 decorated, hval) < 0)
1134 input_num, type, hval);
1136 return hval;
1162 const char *hval)
1169 hval, decorated_name ? decorated_name : "(unnamed)",
1180 if (!ctf_assert (fp, orig_hval == hval))
1184 if (ctf_dynhash_cinsert (d->cd_output_mapping_guard, id, hval) < 0)
1194 hval)) == NULL)
1196 if (ctf_dynhash_cinsert (d->cd_output_first_gid, hval, id) < 0)
1203 if (ctf_dynhash_insert (d->cd_output_mapping, (void *) hval,
1222 (ctf_dynhash_lookup (d->cd_output_first_gid, hval));
1235 "kind %i", hval,
1291 const char *hval;
1295 hval = ctf_dynhash_lookup (d->cd_type_hashes, id);
1312 count = (long int) (uintptr_t) ctf_dynhash_lookup (name_counts, hval);
1314 if (ctf_dynhash_cinsert (name_counts, hval,
1330 ctf_dedup_mark_conflicting_hash (ctf_dict_t *fp, const char *hval)
1339 if (ctf_dynset_exists (d->cd_conflicting_types, hval, NULL))
1342 ctf_dprintf ("Marking %s as conflicted\n", hval);
1344 if (ctf_dynset_cinsert (d->cd_conflicting_types, hval) < 0)
1346 ctf_dprintf ("Out of memory marking %s as conflicted\n", hval);
1351 if ((citers = ctf_dynhash_lookup (d->cd_citers, hval)) == NULL)
1416 const char *hval = (const char *) key_;
1420 kind = ctf_dedup_hash_kind (arg->fp, arg->inputs, hval);
1429 hval, kind, arg->num_non_forwards);
1486 const char *hval = (const char *) hval_;
1494 type_ids = ctf_dynhash_lookup (d->cd_output_mapping, hval);
1509 hval, (char *) k);
1510 ctf_dedup_mark_conflicting_hash (fp, hval);
1537 const char *hval;
1548 hval = (const char *) key;
1553 max_hval = hval;
1554 max_gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval);
1558 void *gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval);
1564 max_hval = hval;
1565 max_gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval);
1578 hval = (const char *) key;
1579 if (strcmp (max_hval, hval) == 0)
1583 hval, (const char *) k);
1584 if (ctf_dedup_mark_conflicting_hash (fp, hval) < 0)
1758 const char *hval)
1774 type_ids = ctf_dynhash_lookup (d->cd_output_mapping, hval);
1866 const char *hval = (const char *) k;
1872 conflicting = !ctf_dedup_multiple_input_dicts (output, inputs, hval);
1878 if (ctf_dynset_cinsert (to_mark, hval) < 0)
1886 const char *hval = (const char *) k;
1888 if (ctf_dedup_mark_conflicting_hash (output, hval) < 0)
2012 const char *hval,
2013 int (*visit_fun) (const char *hval,
2034 const char *hval,
2035 int (*visit_fun) (const char *hval,
2060 "kind %i\n", depth, hval, input_num, type, (void *) fp,
2066 return visit_fun (hval, output, inputs, ninputs, parents, visited, fp,
2197 return visit_fun (hval, output, inputs, ninputs, parents, visited, fp, type,
2216 const char *hval,
2217 int (*visit_fun) (const char *hval,
2239 type_ids = ctf_dynhash_lookup (d->cd_output_mapping, hval);
2243 _("looked up type kind by nonexistent hash %s"), hval);
2249 if (!ctf_dynset_exists (already_visited, hval, NULL))
2258 if (ctf_dynset_cinsert (already_visited, hval) < 0)
2270 if (!ctf_dynset_exists (d->cd_conflicting_types, hval, NULL))
2278 visited, id, hval, visit_fun,
2288 visited, id, hval,
2379 int (*visit_fun) (const char *hval,
2411 const char *hval = (const char *) k;
2414 already_visited, hval, visit_fun,
2437 conflicted per-TU type ID in INPUT with hash HVAL. Return its CTF ID, or 0
2442 const char *hval)
2453 if (!ctf_dynset_exists (od->cd_conflicting_types, hval, NULL)
2463 "hval %s\n", hval);
2520 const char *hval;
2549 hval = ctf_dynhash_lookup (od->cd_type_hashes,
2552 if (!ctf_assert (output, hval && td->cd_output_emission_hashes))
2563 input, id, hval);
2577 ctf_dprintf ("Looking up %i/%lx, hash %s, in target\n", input_num, id, hval);
2579 target_id = ctf_dynhash_lookup (td->cd_output_emission_hashes, hval);
2589 target_id = ctf_dynhash_lookup (od->cd_output_emission_hashes, hval);
2592 input, id, hval);
2611 /* Emit a single deduplicated TYPE with the given HVAL, located in a given
2628 ctf_dedup_emit_type (const char *hval, ctf_dict_t *output, ctf_dict_t **inputs,
2659 depth, hval, ctf_link_input_name (input));
2664 is_conflicting = ctf_dynset_exists (d->cd_conflicting_types, hval, NULL);
2670 depth, hval, input_num, type);
2726 depth, hval, name ? name : "", input_num, (void *) target);
2949 hval, (void *) (uintptr_t) new_type) < 0)
2958 "target %p (%s)\n", depth, hval, input_num, type, new_type,
3159 const char *hval;
3191 hval = ctf_dynhash_lookup (d->cd_type_hashes,
3194 if (!ctf_assert (output, hval != NULL))
3201 if (ctf_dynhash_lookup_kv (fp->ctf_dedup.cd_output_emission_hashes, hval,
3210 hval, NULL, &type_ptr))