Lines Matching refs:parent
691 struct expr_id *parent,
699 * We got in here for the parent group,
715 parent = expr_ids__alloc(ids);
716 if (!parent) {
721 parent->id = strdup(pe->metric_name);
722 if (!parent->id) {
731 * it to the parent group.
752 /* Force all found IDs in metric to have us as parent ID. */
753 WARN_ON_ONCE(!parent);
754 m->pctx.parent = parent;
757 * For both the parent and referenced metrics, we parse
758 * all the metric's IDs and add it to the parent context.
770 * We add new group only in the 'parent' call,
819 static int recursion_check(struct metric *m, const char *id, struct expr_id **parent,
827 * We get the parent referenced by 'id' argument and
828 * traverse through all the parent object IDs to check
836 p = data->parent;
838 while (p->parent) {
843 p = p->parent;
857 p->parent = data->parent;
858 *parent = p;
867 struct expr_id *parent,
888 struct expr_id *parent;
895 ret = recursion_check(m, cur->key, &parent, ids);
903 /* ... and it gets resolved to the parent context. */
904 ret = add_metric(metric_list, pe, metric_no_group, &m, parent, ids);
939 struct expr_id *parent,
948 ret = __add_metric(metric_list, pe, metric_no_group, 1, m, parent, ids);
960 ret = __add_metric(metric_list, pe, metric_no_group, j, m, parent, ids);