Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 196) sorted by relevance

12345678

/kernel/
Dkallsyms.c118 const u8 *name; in get_symbol_offset() local
125 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
134 len = *name; in get_symbol_offset()
141 len = ((len & 0x7F) | (name[1] << 7)) + 1; in get_symbol_offset()
143 name = name + len + 1; in get_symbol_offset()
146 return name - kallsyms_names; in get_symbol_offset()
189 static int compare_symbol_name(const char *name, char *namebuf) in compare_symbol_name() argument
197 return strcmp(name, namebuf); in compare_symbol_name()
210 static int kallsyms_lookup_names(const char *name, in kallsyms_lookup_names() argument
227 ret = compare_symbol_name(name, namebuf); in kallsyms_lookup_names()
[all …]
Dutsname_sysctl.c81 .data = init_uts_ns.name.machine,
82 .maxlen = sizeof(init_uts_ns.name.machine),
88 .data = init_uts_ns.name.sysname,
89 .maxlen = sizeof(init_uts_ns.name.sysname),
95 .data = init_uts_ns.name.release,
96 .maxlen = sizeof(init_uts_ns.name.release),
102 .data = init_uts_ns.name.version,
103 .maxlen = sizeof(init_uts_ns.name.version),
109 .data = init_uts_ns.name.nodename,
110 .maxlen = sizeof(init_uts_ns.name.nodename),
[all …]
Dauditsc.c330 struct audit_names *name, in audit_compare_uid() argument
337 if (name) { in audit_compare_uid()
338 rc = audit_uid_comparator(uid, f->op, name->uid); in audit_compare_uid()
354 struct audit_names *name, in audit_compare_gid() argument
361 if (name) { in audit_compare_gid()
362 rc = audit_gid_comparator(gid, f->op, name->gid); in audit_compare_gid()
381 struct audit_names *name) in audit_field_compare() argument
386 return audit_compare_uid(cred->uid, name, f, ctx); in audit_field_compare()
388 return audit_compare_gid(cred->gid, name, f, ctx); in audit_field_compare()
390 return audit_compare_uid(cred->euid, name, f, ctx); in audit_field_compare()
[all …]
Dparams.c108 kp->name); in param_check_unsafe()
131 if (parameq(param, params[i].name)) { in parse_one()
217 #define STANDARD_PARAM_DEF(name, type, format, strtolfn) \ argument
218 int param_set_##name(const char *val, const struct kernel_param *kp) \
222 int param_get_##name(char *buffer, const struct kernel_param *kp) \
227 const struct kernel_param_ops param_ops_##name = { \
228 .set = param_set_##name, \
229 .get = param_get_##name, \
231 EXPORT_SYMBOL(param_set_##name); \
232 EXPORT_SYMBOL(param_get_##name); \
[all …]
Dcpu.c124 const char *name; member
707 cpuhp_get_step(st->state)->name, in __cpuhp_invoke_callback_range()
758 ret, cpu, cpuhp_get_step(st->state)->name, in cpuhp_up_callbacks()
1160 ret, cpu, cpuhp_get_step(st->state)->name, in cpuhp_down_callbacks()
1729 .name = "offline",
1735 .name = "threads:prepare",
1741 .name = "perf:prepare",
1746 .name = "random:prepare",
1751 .name = "workqueue:prepare",
1756 .name = "hrtimers:prepare",
[all …]
/kernel/livepatch/
Dcore.c50 return obj->name; in klp_is_module()
67 mod = find_module(obj->name); in klp_find_object_module()
109 strcmp(old_obj->name, obj->name) == 0) { in klp_find_object()
122 const char *name; member
128 static int klp_find_callback(void *data, const char *name, in klp_find_callback() argument
136 if (strcmp(args->name, name)) in klp_find_callback()
139 if (args->objname && strcmp(args->objname, mod->name)) in klp_find_callback()
156 static int klp_find_object_symbol(const char *objname, const char *name, in klp_find_object_symbol() argument
161 .name = name, in klp_find_object_symbol()
177 pr_err("symbol '%s' not found in symbol table\n", name); in klp_find_object_symbol()
[all …]
/kernel/module/
Dmain.c181 static unsigned int find_sec(const struct load_info *info, const char *name) in find_sec() argument
189 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
196 static void *section_addr(const struct load_info *info, const char *name) in section_addr() argument
199 return (void *)info->sechdrs[find_sec(info, name)].sh_addr; in section_addr()
204 const char *name, in section_objs() argument
208 unsigned int sec = find_sec(info, name); in section_objs()
216 static unsigned int find_any_sec(const struct load_info *info, const char *name) in find_any_sec() argument
222 if (strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_any_sec()
233 const char *name, in any_section_objs() argument
237 unsigned int sec = find_any_sec(info, name); in any_section_objs()
[all …]
Dkallsyms.c15 static const struct kernel_symbol *lookup_exported_symbol(const char *name, in lookup_exported_symbol() argument
19 return bsearch(name, start, stop - start, in lookup_exported_symbol()
23 static int is_exported(const char *name, unsigned long value, in is_exported() argument
29 ks = lookup_exported_symbol(name, __start___ksymtab, __stop___ksymtab); in is_exported()
31 ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms); in is_exported()
341 *modname = mod->name; in module_address_lookup()
388 unsigned long *offset, char *modname, char *name) in lookup_module_symbol_attrs() argument
403 strscpy(modname, mod->name, MODULE_NAME_LEN); in lookup_module_symbol_attrs()
404 if (name) in lookup_module_symbol_attrs()
405 strscpy(name, sym, KSYM_NAME_LEN); in lookup_module_symbol_attrs()
[all …]
Dinternal.h58 const char *name; member
88 const char *name; member
102 struct module *find_module_all(const char *name, size_t len, bool even_unformed);
103 int cmp_name(const void *name, const void *sym);
154 char name[MODULE_NAME_LEN]; member
249 unsigned long find_kallsyms_symbol_value(struct module *mod, const char *name);
308 extern bool gki_is_module_unprotected_symbol(const char *name);
309 extern bool gki_is_module_protected_export(const char *name);
311 static inline bool gki_is_module_unprotected_symbol(const char *name) in gki_is_module_unprotected_symbol() argument
315 static inline bool gki_is_module_protected_export(const char *name) in gki_is_module_protected_export() argument
Dsysfs.c68 kfree(sect_attrs->attrs[section].battr.attr.name); in free_sect_attrs()
91 sect_attrs->grp.name = "sections"; in add_sect_attrs()
104 sattr->battr.attr.name = in add_sect_attrs()
106 if (!sattr->battr.attr.name) in add_sect_attrs()
204 nattr->attr.name = mod->sect_attrs->attrs[loaded].battr.attr.name; in add_notes_attrs()
250 sysfs_remove_link(use->target->holders_dir, mod->name); in del_usage_links()
264 &mod->mkobj.kobj, mod->name); in add_usage_links()
284 if (!attr->attr.name) in module_remove_modinfo_attrs()
344 pr_err("%s: module sysfs not initialized\n", mod->name); in mod_sysfs_init()
349 kobj = kset_find_obj(module_kset, mod->name); in mod_sysfs_init()
[all …]
/kernel/trace/
Dtrace_events_synth.c124 return strcmp(sev->name, event) == 0 && in synth_event_match()
139 char *name, *type; in synth_event_define_fields() local
147 name = event->fields[i]->name; in synth_event_define_fields()
148 ret = trace_define_field(call, type, name, offset, size, in synth_event_define_fields()
323 char *print_fmt, char *name, in print_synth_event_num_val() argument
328 trace_seq_printf(s, print_fmt, name, (u8)val, space); in print_synth_event_num_val()
332 trace_seq_printf(s, print_fmt, name, (u16)val, space); in print_synth_event_num_val()
336 trace_seq_printf(s, print_fmt, name, (u32)val, space); in print_synth_event_num_val()
340 trace_seq_printf(s, print_fmt, name, val, space); in print_synth_event_num_val()
360 trace_seq_printf(s, "%s: ", se->name); in print_synth_event()
[all …]
Dtrace_export.c32 #define FTRACE_ENTRY_REG(name, struct_name, id, tstruct, print, regfn) \ argument
33 FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print))
67 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print) \ argument
68 struct ____ftrace_##name { \
71 static void __always_unused ____ftrace_check_##name(void) \
73 struct ____ftrace_##name *__entry = NULL; \
80 #define FTRACE_ENTRY_DUP(name, struct_name, id, tstruct, print) \ argument
81 FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print))
87 .type = #_type, .name = #_item, \
94 .type = #_type, .name = #_item, \
[all …]
Dtrace_events_user.c48 #define EVENT_NAME(user_event) ((user_event)->tracepoint.name)
149 static int user_event_parse(struct user_event_group *group, char *name,
153 static u32 user_event_key(char *name) in user_event_key() argument
155 return jhash(name, strlen(name), 0); in user_event_key()
334 char *name = raw_command; in user_event_parse_cmd() local
335 char *args = strpbrk(name, " "); in user_event_parse_cmd()
341 flags = strpbrk(name, ":"); in user_event_parse_cmd()
346 return user_event_parse(group, name, args, flags, newuser); in user_event_parse_cmd()
445 const char *name, int offset, int size, in user_event_add_field() argument
486 field->name = name; in user_event_add_field()
[all …]
Dtrace.h93 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print) \ argument
100 #define FTRACE_ENTRY_DUP(name, name_struct, id, tstruct, printk) argument
103 #define FTRACE_ENTRY_REG(name, struct_name, id, tstruct, print, regfn) \ argument
104 FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print))
107 #define FTRACE_ENTRY_PACKED(name, struct_name, id, tstruct, print) \ argument
108 FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print)) __packed
300 char *name; member
488 const char *name; /* Will appear on the trace_options file */ member
503 #define TRACER_OPT(s, b) .name = #s, .bit = b
534 const char *name; member
[all …]
/kernel/cgroup/
Ddebug.c67 seq_printf(seq, "%2d: %-4s\t- %p[%d]\n", ss->id, ss->name, in current_css_set_read()
227 seq_printf(seq, "%2d: %-4s\t- %p[%d] %d%s\n", ss->id, ss->name, in cgroup_subsys_states_read()
236 static void cgroup_masks_read_one(struct seq_file *seq, const char *name, in cgroup_masks_read_one() argument
243 seq_printf(seq, "%-17s: ", name); in cgroup_masks_read_one()
249 seq_puts(seq, ss->name); in cgroup_masks_read_one()
279 .name = "taskcount",
284 .name = "current_css_set",
290 .name = "current_css_set_refcount",
296 .name = "current_css_set_cg_links",
302 .name = "cgroup_css_links",
[all …]
Dcgroup-internal.h56 char *name; /* Hierarchy name */ member
157 #define CGROUP_MGCTX_INIT(name) \ argument
159 LIST_HEAD_INIT(name.preloaded_src_csets), \
160 LIST_HEAD_INIT(name.preloaded_dst_csets), \
161 CGROUP_TASKSET_INIT(name.tset), \
164 #define DEFINE_CGROUP_MGCTX(name) \ argument
165 struct cgroup_mgctx name = CGROUP_MGCTX_INIT(name)
262 int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode);
/kernel/trace/rv/
Drv_reactors.c73 static struct rv_reactor_def *get_reactor_rdef_by_name(char *name) in get_reactor_rdef_by_name() argument
78 if (strcmp(name, r->reactor->name) == 0) in get_reactor_rdef_by_name()
91 seq_printf(m, "%s\n", rea_def->reactor->name); in reactors_show()
145 seq_printf(m, "[%s]\n", rdef->reactor->name); in monitor_reactor_show()
147 seq_printf(m, "%s\n", rdef->reactor->name); in monitor_reactor_show()
225 if (strcmp(ptr, rdef->reactor->name) != 0) in monitor_reactors_write()
283 if (strcmp(reactor->name, r->reactor->name) == 0) { in __rv_register_reactor()
284 pr_info("Reactor %s is already registered\n", reactor->name); in __rv_register_reactor()
311 if (strlen(reactor->name) >= MAX_RV_REACTOR_NAME_SIZE) { in rv_register_reactor()
313 reactor->name, MAX_RV_MONITOR_NAME_SIZE); in rv_register_reactor()
[all …]
/kernel/debug/kdb/
Dkdb_main.c545 char **name) in kdbgetaddrarg() argument
619 if (name) in kdbgetaddrarg()
620 *name = symname; in kdbgetaddrarg()
623 if (offset && name && *name) in kdbgetaddrarg()
768 kp->name, kp->usage, kp->help); in kdb_defcmd()
792 mp->name = kdb_strdup(argv[1], GFP_KDB); in kdb_defcmd()
793 if (!mp->name) in kdb_defcmd()
816 kfree(mp->name); in kdb_defcmd()
844 if (strcmp(kp->name, argv[0]) == 0) in kdb_exec_defcmd()
858 kdb_printf("[%s]kdb> %s\n", kmp->cmd.name, kms->statement); in kdb_exec_defcmd()
[all …]
/kernel/irq/
Dproc.c309 if ((action != new_action) && action->name && in name_unique()
310 !strcmp(new_action->name, action->name)) { in name_unique()
321 char name [MAX_NAMELEN]; in register_handler_proc() local
324 if (!desc->dir || action->dir || !action->name || in register_handler_proc()
328 snprintf(name, MAX_NAMELEN, "%s", action->name); in register_handler_proc()
331 action->dir = proc_mkdir(name, desc->dir); in register_handler_proc()
342 char name [MAX_NAMELEN]; in register_irq_proc() local
357 sprintf(name, "%d", irq); in register_irq_proc()
360 desc->dir = proc_mkdir(name, root_irq_dir); in register_irq_proc()
395 char name [MAX_NAMELEN]; in unregister_irq_proc() local
[all …]
Dirqdomain.c36 char *name; member
52 return fwid->name; in irqchip_fwnode_get_name()
77 const char *name, in __irq_domain_alloc_fwnode() argument
87 n = kasprintf(GFP_KERNEL, "%s", name); in __irq_domain_alloc_fwnode()
90 n = kasprintf(GFP_KERNEL, "%s-%d", name, id); in __irq_domain_alloc_fwnode()
104 fwid->name = n; in __irq_domain_alloc_fwnode()
124 kfree(fwid->name); in irq_domain_free_fwnode()
158 domain->name = kstrdup(fwid->name, GFP_KERNEL); in __irq_domain_create()
159 if (!domain->name) { in __irq_domain_create()
167 domain->name = fwid->name; in __irq_domain_create()
[all …]
Ddebugfs.c14 char *name; member
16 #define BIT_MASK_DESCR(m) { .mask = m, .name = #m }
25 seq_printf(m, "%*s%s\n", ind + 12, "", sd->name); in irq_debug_show_bits()
77 seq_printf(m, "%s", chip->name); in irq_debug_show_chip()
87 data->domain ? data->domain->name : ""); in irq_debug_show_data()
225 const char *name = dev_name(dev); in irq_debugfs_copy_devname() local
227 if (name) in irq_debugfs_copy_devname()
228 desc->dev_name = kstrdup(name, GFP_KERNEL); in irq_debugfs_copy_devname()
233 char name [10]; in irq_add_debugfs_entry() local
238 sprintf(name, "%d", irq); in irq_add_debugfs_entry()
[all …]
/kernel/power/
Dwakelock.c28 char *name; member
49 len += sysfs_emit_at(buf, len, "%s ", wl->name); in pm_show_wakelocks()
124 kfree(wl->name); in __wakelocks_gc()
147 static struct wakelock *wakelock_lookup_add(const char *name, size_t len, in wakelock_lookup_add() argument
159 diff = strncmp(name, wl->name, len); in wakelock_lookup_add()
161 if (wl->name[len]) in wakelock_lookup_add()
182 wl->name = kstrndup(name, len, GFP_KERNEL); in wakelock_lookup_add()
183 if (!wl->name) { in wakelock_lookup_add()
188 wl->ws = wakeup_source_register(NULL, wl->name); in wakelock_lookup_add()
190 kfree(wl->name); in wakelock_lookup_add()
/kernel/time/
Dclocksource.c242 smp_processor_id(), watchdog->name, nretries); in cs_watchdog_read()
263 smp_processor_id(), watchdog->name, wd_delay, nretries); in cs_watchdog_read()
268 smp_processor_id(), watchdog->name, wd_seq_delay); in cs_watchdog_read()
270 cs->name, wd_delay); in cs_watchdog_read()
351 pr_warn("Not enough CPUs to check clocksource '%s'.\n", cs->name); in clocksource_verify_percpu()
355 …pr_warn("Checking clocksource %s synchronization from CPU %d to CPUs %*pbl.\n", cs->name, testcpu,… in clocksource_verify_percpu()
379 cpumask_pr_args(&cpus_ahead), testcpu, cs->name); in clocksource_verify_percpu()
382 cpumask_pr_args(&cpus_behind), testcpu, cs->name); in clocksource_verify_percpu()
385 testcpu, cs_nsec_min, cs_nsec_max, cs->name); in clocksource_verify_percpu()
497 smp_processor_id(), cs->name); in clocksource_watchdog()
[all …]
/kernel/printk/
Dprintk_ringbuffer.h233 #define _DEFINE_PRINTKRB(name, descbits, avgtextbits, text_buf) \ argument
234 static struct prb_desc _##name##_descs[_DESCS_COUNT(descbits)] = { \
243 static struct printk_info _##name##_infos[_DESCS_COUNT(descbits)] = { \
255 static struct printk_ringbuffer name = { \
258 .descs = &_##name##_descs[0], \
259 .infos = &_##name##_infos[0], \
284 #define DEFINE_PRINTKRB(name, descbits, avgtextbits) \ argument
285 static char _##name##_text[1U << ((avgtextbits) + (descbits))] \
287 _DEFINE_PRINTKRB(name, descbits, avgtextbits, &_##name##_text[0])
/kernel/locking/
Dlockdep_proc.c63 const char *name = class->name; in print_name() local
65 if (!name) { in print_name()
66 name = __get_key_name(class->key, str); in print_name()
67 seq_printf(m, "%s", name); in print_name()
69 seq_printf(m, "%s", name); in print_name()
465 char name[39]; in seq_stats() local
477 cname = rcu_dereference_sched(class->name); in seq_stats()
489 snprintf(name, namelen, "%s", key_name); in seq_stats()
491 snprintf(name, namelen, "%s", cname); in seq_stats()
495 namelen = strlen(name); in seq_stats()
[all …]

12345678