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

Lines Matching +defs:name +defs:pos

17  * information: Portions Copyright [yyyy] [name of copyright owner]
124 extern int kernel_sysctlbyname(const char *name, void *oldp,
206 static dtrace_hash_t *dtrace_byname; /* probes hashed by name */
3798 int64_t pos = (int64_t)tupregs[2].dttk_value;
3840 if (pos < 0) {
3846 if ((size_t)pos > len)
3847 pos = len;
3849 if (pos < 0)
3850 pos = 0;
3852 if ((size_t)pos >= len) {
3859 addr = orig + pos;
4274 * We know that we have a slash in the name --
4280 * character of the directory name is 0.
5534 * print the provider name, module name, function name and name of
7173 * We want to find the most distinct of the module name, function
7174 * name, and name. So for each one that is not a glob pattern or
7221 * name and invoke the callback for every probe that matches the other
7309 dtrace_register(const char *name, const dtrace_pattr_t *pap, uint32_t priv,
7314 if (name == NULL || pap == NULL || pops == NULL || idp == NULL) {
7316 "arguments", name ? name : "<NULL>");
7320 if (name[0] == '\0' || dtrace_badname(name)) {
7322 "provider name", name);
7331 "provider ops", name);
7341 "provider attributes", name);
7347 "privilege attributes", name);
7355 "dtps_usermode() op for given privilege attributes", name);
7363 size_t bufsize = strlen(name) + 1;
7365 (void) strlcpy(provider->dtpv_name, name, bufsize);
7691 * Create a probe with the specified module name, function name, and name.
7695 const char *func, const char *name, int aframes, void *arg)
7717 probe->dtpr_name = dtrace_strdup(name);
7792 * Look up a probe based on provider and one or more of module name, function
7793 * name and probe name.
7797 const char *func, const char *name)
7809 pkey.dtpk_name = name;
7810 pkey.dtpk_nmatch = name ? &dtrace_match_string : &dtrace_match_nul;
8183 dtrace_meta_register(const char *name, const dtrace_mops_t *mops, void *arg,
8193 * We strictly don't need the name, but we hold onto it for
8196 if (name == NULL) {
8198 "invalid name");
8207 "invalid ops", name);
8216 size_t bufsize = strlen(name) + 1;
8218 (void) strlcpy(meta->dtm_name, name, bufsize);
8230 "user-land meta-provider exists", name);
11649 dtrace_dof_property(const char *name)
11662 name, (int **)&buf, &len) != DDI_PROP_SUCCESS)
11797 dtrace_dof_error(dof, "corrupt probe name");
14137 dtrace_dof_error(dof, "invalid provider name");
14179 dtrace_dof_error(dof, "invalid function name");
14184 dtrace_dof_error(dof, "function name too long");
14190 dtrace_dof_error(dof, "invalid probe name");
15016 * If a module exists with the same name, then that module
15145 cmn_err(CE_WARN, "dtrace load module already exists '%s %u' is failing against '%s %u'", kmod->name, (uint_t)kmod->id, ctl->mod_modname, ctl->mod_id);
15152 cmn_err(CE_WARN, "dtrace module load '%s %u' is failing ", kmod->name, (uint_t)kmod->id);
15159 strlcpy (ctl->mod_modname, kmod->name, sizeof(ctl->mod_modname));
17638 strlcpy(fake_kernel_kmod.name, "mach_kernel", sizeof(fake_kernel_kmod.name));