• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/bsd/dev/dtrace/

Lines Matching defs:helper

216 static dtrace_helpers_t *dtrace_deferred_pid;	/* deferred helper list */
246 * including enabling state, probes, ECBs, consumer state, helper state,
978 * DTrace subroutines (DIF_SUBR_*) should use this helper to implement
2951 * dtrace_dif_variable() uses this routine as a helper for various
5779 * Now we want to walk up the stack, calling the USTACK helper. For
5793 * If we faulted while running the helper, we're going to
5810 * Now copy in the string that the helper returned to us.
8724 * Validate a DTrace DIF object that it is to be used as a helper. Helpers
11230 * dtvs_state can only be NULL for helper enablings -- and
11231 * helper enablings can't be retained.
11291 * dtvs_state can only be NULL for helper enablings -- and
11292 * helper enablings can't be retained.
13592 dtrace_helper_trace(dtrace_helper_action_t *helper,
13632 ent->dtht_helper = helper;
13662 dtrace_helper_action_t *helper;
13672 if ((helper = helpers->dthps_actions[which]) == NULL)
13680 * Now iterate over each helper. If its predicate evaluates to 'true',
13688 for (; helper != NULL; helper = helper->dtha_next) {
13689 if ((pred = helper->dtha_predicate) != NULL) {
13691 dtrace_helper_trace(helper, mstate, vstate, 0);
13700 for (i = 0; i < helper->dtha_nactions; i++) {
13702 dtrace_helper_trace(helper,
13705 rval = dtrace_dif_emulate(helper->dtha_actions[i],
13714 dtrace_helper_trace(helper, mstate, vstate,
13719 dtrace_helper_trace(helper, mstate, vstate,
13732 dtrace_helper_trace(helper, mstate, vstate,
13745 dtrace_helper_action_destroy(dtrace_helper_action_t *helper,
13750 if (helper->dtha_predicate != NULL)
13751 dtrace_difo_release(helper->dtha_predicate, vstate);
13753 for (i = 0; i < helper->dtha_nactions; i++) {
13754 ASSERT(helper->dtha_actions[i] != NULL);
13755 dtrace_difo_release(helper->dtha_actions[i], vstate);
13758 kmem_free(helper->dtha_actions,
13759 helper->dtha_nactions * sizeof (dtrace_difo_t *));
13760 kmem_free(helper, sizeof (dtrace_helper_action_t));
13798 * Interate until we've cleared out all helper providers with the
13805 * Look for a helper provider with the right generation. We
13824 * Move the last helper provider into this slot.
13833 * If we have a meta provider, remove this helper provider.
13852 dtrace_helper_validate(dtrace_helper_action_t *helper)
13857 if ((dp = helper->dtha_predicate) != NULL)
13860 for (i = 0; i < helper->dtha_nactions; i++)
13861 err += dtrace_difo_validate_helper(helper->dtha_actions[i]);
13870 dtrace_helper_action_t *helper, *last;
13890 * If we already have dtrace_helper_actions_max helper actions for this
13891 * helper action type, we'll refuse to add a new one.
13896 helper = kmem_zalloc(sizeof (dtrace_helper_action_t), KM_SLEEP);
13897 helper->dtha_generation = help->dthps_generation;
13902 helper->dtha_predicate = pred->dtp_difo;
13915 helper->dtha_actions = kmem_zalloc(sizeof (dtrace_difo_t *) *
13916 (helper->dtha_nactions = nactions), KM_SLEEP);
13920 helper->dtha_actions[i++] = act->dtad_difo;
13923 if (!dtrace_helper_validate(helper))
13927 help->dthps_actions[which] = helper;
13929 last->dtha_next = helper;
13939 dtrace_helper_action_destroy(helper, vstate);
13976 * helper provider description, pass that off to the
13986 * Otherwise, just pass all the helper provider descriptions
14014 * If we already have dtrace_helper_providers_max helper providers,
14035 * Allocate a bigger table for helper providers if it's already full.
14319 * Look for helper providers and validate their descriptions.
14350 if (!LIT_STRNEQL(desc->dtpd_mod, "helper"))
14359 * Adding this helper action failed -- we are now going
14397 * DTrace user static probes (USDT probes) and helper actions are loaded
14839 * Destory the helper actions.
14854 * Destroy the helper providers.
14873 * Remove the helper from the deferred list.
14912 dtrace_helper_action_t *helper, *new, *last;
14930 * Duplicate the helper actions.
14933 if ((helper = help->dthps_actions[i]) == NULL)
14936 for (last = NULL; helper != NULL; helper = helper->dtha_next) {
14939 new->dtha_generation = helper->dtha_generation;
14941 if ((dp = helper->dtha_predicate) != NULL) {
14946 new->dtha_nactions = helper->dtha_nactions;
14951 dtrace_difo_t *dpj = helper->dtha_actions[j];
14969 * Duplicate the helper providers and register them with the
15662 * If DTrace helper tracing is enabled, we need to allocate the
17365 * Once the "helper" is initialized, it can take ioctl calls that use locks
17385 printf("dtrace_init: failed to devfs_make_node for helper!\n");