Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 12 of 12) sorted by relevance

/kernel/trace/
Dtrace_events.c420 static void __get_system_dir(struct ftrace_subsystem_dir *dir) in __get_system_dir() argument
422 WARN_ON_ONCE(dir->ref_count == 0); in __get_system_dir()
423 dir->ref_count++; in __get_system_dir()
424 __get_system(dir->subsystem); in __get_system_dir()
427 static void __put_system_dir(struct ftrace_subsystem_dir *dir) in __put_system_dir() argument
429 WARN_ON_ONCE(dir->ref_count == 0); in __put_system_dir()
431 WARN_ON_ONCE(system_refcount(dir->subsystem) == 1 && dir->ref_count != 1); in __put_system_dir()
433 __put_system(dir->subsystem); in __put_system_dir()
434 if (!--dir->ref_count) in __put_system_dir()
435 kfree(dir); in __put_system_dir()
[all …]
Dtrace_events_filter.c845 static void filter_free_subsystem_preds(struct ftrace_subsystem_dir *dir, in filter_free_subsystem_preds() argument
851 if (file->system != dir) in filter_free_subsystem_preds()
870 static void filter_free_subsystem_filters(struct ftrace_subsystem_dir *dir, in filter_free_subsystem_filters() argument
876 if (file->system != dir) in filter_free_subsystem_filters()
1734 static int replace_system_preds(struct ftrace_subsystem_dir *dir, in replace_system_preds() argument
1747 if (file->system != dir) in replace_system_preds()
1764 if (file->system != dir) in replace_system_preds()
1938 static int create_system_filter(struct ftrace_subsystem_dir *dir, in create_system_filter() argument
1948 err = replace_system_preds(dir, tr, ps, filter_str); in create_system_filter()
2015 int apply_subsystem_event_filter(struct ftrace_subsystem_dir *dir, in apply_subsystem_event_filter() argument
[all …]
Dblktrace.c297 debugfs_remove(bt->dir); in blk_trace_free()
441 struct dentry *dir = NULL; in do_blk_trace_setup() local
483 dir = debugfs_create_dir(buts->name, blk_tree_root); in do_blk_trace_setup()
485 if (!dir) in do_blk_trace_setup()
488 bt->dir = dir; in do_blk_trace_setup()
494 bt->dropped_file = debugfs_create_file("dropped", 0444, dir, bt, in do_blk_trace_setup()
499 bt->msg_file = debugfs_create_file("msg", 0222, dir, bt, &blk_msg_fops); in do_blk_trace_setup()
503 bt->rchan = relay_open("trace", dir, buts->buf_size, in do_blk_trace_setup()
Dtrace.c5988 if (WARN_ON(!tr->dir)) in tracing_get_dentry()
5996 return tr->dir; in tracing_get_dentry()
6492 tr->dir = tracefs_create_dir(name, trace_instance_dir); in instance_mkdir()
6493 if (!tr->dir) in instance_mkdir()
6496 ret = event_trace_add_tracer(tr->dir, tr); in instance_mkdir()
6498 tracefs_remove_recursive(tr->dir); in instance_mkdir()
6502 init_tracer_tracefs(tr, tr->dir); in instance_mkdir()
6550 debugfs_remove_recursive(tr->dir); in instance_rmdir()
6670 if (tr->dir) in tracing_init_dentry()
6682 tr->dir = debugfs_create_automount("tracing", NULL, in tracing_init_dentry()
[all …]
Dtrace.h221 struct dentry *dir; member
1070 extern int apply_subsystem_event_filter(struct ftrace_subsystem_dir *dir,
/kernel/irq/
Dproc.c313 if (!desc->dir || action->dir || !action->name || in register_handler_proc()
321 action->dir = proc_mkdir(name, desc->dir); in register_handler_proc()
343 if (desc->dir) in register_irq_proc()
350 desc->dir = proc_mkdir(name, root_irq_dir); in register_irq_proc()
351 if (!desc->dir) in register_irq_proc()
356 proc_create_data("smp_affinity", 0644, desc->dir, in register_irq_proc()
360 proc_create_data("affinity_hint", 0444, desc->dir, in register_irq_proc()
364 proc_create_data("smp_affinity_list", 0644, desc->dir, in register_irq_proc()
367 proc_create_data("node", 0444, desc->dir, in register_irq_proc()
371 proc_create_data("spurious", 0444, desc->dir, in register_irq_proc()
[all …]
Dmanage.c1230 new->dir = NULL; in __setup_irq()
/kernel/gcov/
Dfs.c303 static char *link_target(const char *dir, const char *path, const char *ext) in link_target() argument
315 if (dir) in link_target()
316 target = kasprintf(GFP_KERNEL, "%s/%s.%s", dir, copy, ext); in link_target()
337 if (ext->dir == SRC_TREE) in get_link_target()
Dgcov.h80 } dir; member
/kernel/
Dkprobes.c2421 struct dentry *dir, *file; in debugfs_kprobe_init() local
2424 dir = debugfs_create_dir("kprobes", NULL); in debugfs_kprobe_init()
2425 if (!dir) in debugfs_kprobe_init()
2428 file = debugfs_create_file("list", 0444, dir, NULL, in debugfs_kprobe_init()
2433 file = debugfs_create_file("enabled", 0600, dir, in debugfs_kprobe_init()
2438 file = debugfs_create_file("blacklist", 0444, dir, NULL, in debugfs_kprobe_init()
2446 debugfs_remove(dir); in debugfs_kprobe_init()
Dmodule.c1400 struct kobject *dir; member
1419 if (notes_attrs->dir) { in free_notes_attrs()
1421 sysfs_remove_bin_file(notes_attrs->dir, in free_notes_attrs()
1423 kobject_put(notes_attrs->dir); in free_notes_attrs()
1471 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
1472 if (!notes_attrs->dir) in add_notes_attrs()
1476 if (sysfs_create_bin_file(notes_attrs->dir, in add_notes_attrs()
/kernel/locking/
Dlockdep.c1621 int dir = new_bit & 2; in exclusive_bit() local
1626 return state | (dir ^ 2); in exclusive_bit()
2451 int dir = new_bit & 2; in mark_lock_irq() local
2460 check_usage_f usage = dir ? in mark_lock_irq()
2474 if ((!read || !dir || STRICT_READ_CHECKS) && in mark_lock_irq()