Lines Matching defs:cause_id
42 /* cause_id -> stat entry */
126 * Look up the cause_id of a synchronization object.
127 * Note that this cause_id is only unique in GROUP_SOBJ, and changes after
271 update_stat_entry(lt_stat_collection_t *stat, int cause_id,
286 group->lt_grp_cidlist, LT_INT_TO_POINTER(cause_id));
301 entry->lt_se_tsdata.lt_se_t_cause.lt_se_c_id = cause_id;
303 lt_table_get_cause_flag(cause_id, CAUSE_ALL_FLAGS);
314 entry->lt_se_tsdata.lt_se_t_sobj.lt_se_s_id = cause_id;
319 LT_INT_TO_POINTER(cause_id), entry);
332 update_stat_entry(stat->lt_sc_parent, cause_id, type, value,
339 * Return cause_id.
342 find_cause(char *stack, int *cause_id, int *cause_priority)
350 g_assert(cause_id != NULL);
378 *cause_id = cause;
475 * Update statistics with the given cause_id. Values will be added to
479 lt_stat_update_cause(pid_t pid, id_t tid, int cause_id, lt_stat_type_t type,
485 if (cause_id < 0 || value == 0) {
489 if (lt_table_get_cause_flag(cause_id, CAUSE_FLAG_DISABLED)) {
501 string = lt_table_get_cause_name(cause_id);
503 update_stat_entry(stat_t, cause_id, type, value, string, GROUP_CAUSE);
517 int cause_id = INVALID_CAUSE;
537 cause_id = (tag_priority > stack_priority) ? tag_cause_id :
540 if (cause_id == INVALID_CAUSE) {
545 cause_id = lt_table_cause_from_name(stack, 1,
552 lt_stat_update_cause(pid, tid, cause_id, type, value);
1029 int cause_id;
1046 cause_id = sobj->lt_so_cause_id;
1048 update_stat_entry(stat_t, cause_id, type, value,