Lines Matching refs:policy
180 dmp->policy->name,
184 if (dmp->policy->us_schedule)
187 (lws_usec_t)dmp->policy->us_schedule);
191 * Policies are in two pieces, a const policy and a dynamic part that contains
192 * lists and sul timers for the policy etc. This creates a dynmic part
195 * Metrics can exist detached from being bound to any policy about how to
197 * bound to a reporting policy dynamically.
210 dmet->policy = po;
222 * Get a dynamic metrics policy from the const one, may return NULL if OOM
233 if (dm->policy == po)
239 * no dyn policy part for this const policy --> create one
241 * We want a dynamic part for listing metrics that bound to the policy
268 /* yes, we are mentioned in this guy's policy */
273 /* no, this policy doesn't apply to a metric with our name */
303 * Create a lws_metric_t, bind to a named policy if possible (or add to the
356 * Let's see if we can bind to a reporting policy straight away
372 * get interested in us and apply a reporting policy
381 * If our metric is bound to a reporting policy, return a pointer to it,
391 * Our metric must either be on the "no policy" context list or
392 * listed by the dynamic part of the policy it is bound to
398 /* we are on the "no policy" context list */
401 /* we are listed by a dynamic policy owner */
405 /* return the const policy the dynamic policy represents */
407 return dp->policy;
474 * Allow an existing metric to have its reporting policy changed at runtime
499 * from the policy being deleted and keep track of them on ctx->
537 /* destroy metrics with no current policy too... */
847 * We want to, at least internally, record an event... depending on the policy,
850 * the policy)