/kernel/trace/ |
D | trace_functions.c | 38 struct ftrace_ops *ops; in allocate_ftrace_ops() local 40 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in allocate_ftrace_ops() 41 if (!ops) in allocate_ftrace_ops() 45 ops->func = function_trace_call; in allocate_ftrace_ops() 46 ops->flags = FTRACE_OPS_FL_RECURSION_SAFE; in allocate_ftrace_ops() 48 tr->ops = ops; in allocate_ftrace_ops() 49 ops->private = tr; in allocate_ftrace_ops() 70 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files() 77 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files() 78 kfree(tr->ops); in ftrace_destroy_function_files() [all …]
|
D | ftrace.c | 148 static inline void ftrace_ops_init(struct ftrace_ops *ops) in ftrace_ops_init() argument 151 if (!(ops->flags & FTRACE_OPS_FL_INITIALIZED)) { in ftrace_ops_init() 152 mutex_init(&ops->local_hash.regex_lock); in ftrace_ops_init() 153 ops->func_hash = &ops->local_hash; in ftrace_ops_init() 154 ops->flags |= FTRACE_OPS_FL_INITIALIZED; in ftrace_ops_init() 166 struct ftrace_ops *ops; in ftrace_nr_registered_ops() local 171 for (ops = ftrace_ops_list; in ftrace_nr_registered_ops() 172 ops != &ftrace_list_end; ops = ops->next) in ftrace_nr_registered_ops() 208 static void control_ops_disable_all(struct ftrace_ops *ops) in control_ops_disable_all() argument 213 *per_cpu_ptr(ops->disabled, cpu) = 1; in control_ops_disable_all() [all …]
|
D | trace_events_trigger.c | 77 data->ops->func(data); in event_triggers_call() 87 data->ops->func(data); in event_triggers_call() 113 data->ops->func(data); in event_triggers_post_call() 168 data->ops->print(m, data->ops, data); in trigger_show() 404 event_trigger_init(struct event_trigger_ops *ops, in event_trigger_init() argument 422 event_trigger_free(struct event_trigger_ops *ops, in event_trigger_free() argument 475 if (data->ops->free) in clear_event_triggers() 476 data->ops->free(data->ops, data); in clear_event_triggers() 523 static int register_trigger(char *glob, struct event_trigger_ops *ops, in register_trigger() argument 537 if (data->ops->init) { in register_trigger() [all …]
|
D | trace_event_perf.c | 303 struct ftrace_ops *ops, struct pt_regs *pt_regs) in perf_ftrace_function_call() argument 335 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_register() local 337 ops->flags |= FTRACE_OPS_FL_CONTROL; in perf_ftrace_function_register() 338 ops->func = perf_ftrace_function_call; in perf_ftrace_function_register() 339 return register_ftrace_function(ops); in perf_ftrace_function_register() 344 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_unregister() local 345 int ret = unregister_ftrace_function(ops); in perf_ftrace_function_unregister() 346 ftrace_free_filter(ops); in perf_ftrace_function_unregister()
|
D | trace_events_filter.c | 118 struct filter_op *ops; member 483 pred = &preds[op->ops[i]]; in process_ops() 509 if (!pred->ops) in filter_match_preds_cb() 769 kfree(filter->preds[i].ops); in __free_preds() 1038 struct filter_op *ops, in parse_init() argument 1045 ps->ops = ops; in parse_init() 1081 return ps->ops[a].precedence < ps->ops[b].precedence; in is_precedence_lower() 1088 for (i = 0; strcmp(ps->ops[i].string, "OP_NONE"); i++) { in is_op_char() 1089 if (ps->ops[i].string[0] == c) in is_op_char() 1106 for (i = 0; strcmp(ps->ops[i].string, "OP_NONE"); i++) { in infix_get_op() [all …]
|
D | trace.h | 230 struct ftrace_ops *ops; member 859 void ftrace_create_filter_files(struct ftrace_ops *ops, 861 void ftrace_destroy_filter_files(struct ftrace_ops *ops); 867 #define ftrace_create_filter_files(ops, parent) do { } while (0) argument 868 #define ftrace_destroy_filter_files(ops) do { } while (0) argument 1053 unsigned short *ops; member 1107 struct event_trigger_ops *ops; member 1153 int (*init)(struct event_trigger_ops *ops, 1155 void (*free)(struct event_trigger_ops *ops, 1158 struct event_trigger_ops *ops, [all …]
|
D | trace_events.c | 1985 struct ftrace_probe_ops *ops, void *_data) in event_enable_print() argument 2005 event_enable_init(struct ftrace_probe_ops *ops, unsigned long ip, in event_enable_init() argument 2016 event_enable_free(struct ftrace_probe_ops *ops, unsigned long ip, in event_enable_free() argument 2069 struct ftrace_probe_ops *ops; in event_enable_func() local 2100 ops = param ? &event_enable_count_probe_ops : &event_enable_probe_ops; in event_enable_func() 2102 ops = param ? &event_disable_count_probe_ops : &event_disable_probe_ops; in event_enable_func() 2105 unregister_ftrace_function_probe_func(glob+1, ops); in event_enable_func() 2147 ret = register_ftrace_function_probe(glob, ops, data); in event_enable_func()
|
D | trace_sched_wakeup.c | 147 ret = register_ftrace_function(tr->ops); in register_wakeup_function() 163 unregister_ftrace_function(tr->ops); in unregister_wakeup_function()
|
D | trace_irqsoff.c | 540 ret = register_ftrace_function(tr->ops); in register_irqsoff_function() 556 unregister_ftrace_function(tr->ops); in unregister_irqsoff_function()
|
D | trace_selftest.c | 221 register_ftrace_function(tr->ops); in trace_selftest_ops() 302 unregister_ftrace_function(tr->ops); in trace_selftest_ops()
|
D | trace.c | 4775 .ops = &tracing_pipe_buf_ops, in tracing_splice_read_pipe() 5654 .ops = &buffer_pipe_buf_ops, in tracing_buffers_splice_read() 5900 struct ftrace_probe_ops *ops, void *data) in ftrace_snapshot_print() argument 5930 struct ftrace_probe_ops *ops; in ftrace_trace_snapshot_callback() local 5939 ops = param ? &snapshot_count_probe_ops : &snapshot_probe_ops; in ftrace_trace_snapshot_callback() 5942 unregister_ftrace_function_probe_func(glob+1, ops); in ftrace_trace_snapshot_callback() 5967 ret = register_ftrace_function_probe(glob, ops, count); in ftrace_trace_snapshot_callback()
|
/kernel/time/ |
D | posix-clock.c | 61 if (clk->ops.read) in posix_clock_read() 62 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read() 77 if (clk->ops.poll) in posix_clock_poll() 78 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll() 93 if (clk->ops.fasync) in posix_clock_fasync() 94 err = clk->ops.fasync(clk, fd, fp, on); in posix_clock_fasync() 109 if (clk->ops.mmap) in posix_clock_mmap() 110 err = clk->ops.mmap(clk, vma); in posix_clock_mmap() 126 if (clk->ops.ioctl) in posix_clock_ioctl() 127 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl() [all …]
|
D | alarmtimer.c | 85 if (!rtc->ops->set_alarm) in alarmtimer_rtc_add_device()
|
/kernel/irq/ |
D | irqdomain.c | 41 const struct irq_domain_ops *ops, in __irq_domain_add() argument 53 domain->ops = ops; in __irq_domain_add() 126 const struct irq_domain_ops *ops, in irq_domain_add_simple() argument 131 domain = __irq_domain_add(of_node, size, size, 0, ops, host_data); in irq_domain_add_simple() 170 const struct irq_domain_ops *ops, in irq_domain_add_legacy() argument 176 first_hwirq + size, 0, ops, host_data); in irq_domain_add_legacy() 202 if (h->ops->match) in irq_find_host() 203 rc = h->ops->match(h, node); in irq_find_host() 253 if (domain->ops->unmap) in irq_domain_disassociate() 254 domain->ops->unmap(domain, irq); in irq_domain_disassociate() [all …]
|
/kernel/bpf/ |
D | syscall.c | 29 map = tl->ops->map_alloc(attr); in find_and_alloc_map() 32 map->ops = tl->ops; in find_and_alloc_map() 52 map->ops->map_free(map); in bpf_map_free_deferred() 113 map->ops->map_free(map); in map_create() 174 value = map->ops->map_lookup_elem(map, key); in map_lookup_elem() 234 err = map->ops->map_update_elem(map, key, value); in map_update_elem() 274 err = map->ops->map_delete_elem(map, key); in map_delete_elem() 319 err = map->ops->map_get_next_key(map, key, next_key); in map_get_next_key() 347 prog->aux->ops = tl->ops; in find_prog_type() 382 BUG_ON(!prog->aux->ops->get_func_proto); in fixup_bpf_calls() [all …]
|
D | test_stub.c | 77 .ops = &test_ops, 106 .ops = &test_map_ops,
|
D | verifier.c | 638 if (env->prog->aux->ops->is_valid_access && in check_ctx_access() 639 env->prog->aux->ops->is_valid_access(off, size, t)) in check_ctx_access() 857 if (env->prog->aux->ops->get_func_proto) in check_call() 858 fn = env->prog->aux->ops->get_func_proto(func_id); in check_call()
|
/kernel/power/ |
D | hibernate.c | 75 void hibernation_set_ops(const struct platform_hibernation_ops *ops) in hibernation_set_ops() argument 77 if (ops && !(ops->begin && ops->end && ops->pre_snapshot in hibernation_set_ops() 78 && ops->prepare && ops->finish && ops->enter && ops->pre_restore in hibernation_set_ops() 79 && ops->restore_cleanup && ops->leave)) { in hibernation_set_ops() 84 hibernation_ops = ops; in hibernation_set_ops() 85 if (ops) in hibernation_set_ops()
|
D | suspend.c | 46 void freeze_set_ops(const struct platform_freeze_ops *ops) in freeze_set_ops() argument 49 freeze_ops = ops; in freeze_set_ops() 132 void suspend_set_ops(const struct platform_suspend_ops *ops) in suspend_set_ops() argument 139 suspend_ops = ops; in suspend_set_ops()
|
D | suspend_test.c | 133 if (!candidate->ops->set_alarm) in has_wakealarm()
|
/kernel/ |
D | params.c | 117 !(params[i].ops->flags & KERNEL_PARAM_OPS_FL_NOARG)) in parse_one() 120 params[i].ops->set); in parse_one() 123 err = params[i].ops->set(val, ¶ms[i]); in parse_one() 444 arr->elemsize, arr->ops->set, kp->level, in param_array_set() 460 ret = arr->ops->get(buffer + off, &p); in param_array_get() 474 if (arr->ops->free) in param_array_free() 476 arr->ops->free(arr->elem + arr->elemsize * i); in param_array_free() 539 if (!attribute->param->ops->get) in param_attr_show() 543 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show() 560 if (!attribute->param->ops->set) in param_attr_store() [all …]
|
D | nsproxy.c | 223 const struct proc_ns_operations *ops; in SYSCALL_DEFINE2() local 236 ops = ei->ns_ops; in SYSCALL_DEFINE2() 237 if (nstype && (ops->type != nstype)) in SYSCALL_DEFINE2() 246 err = ops->install(new_nsproxy, ei->ns); in SYSCALL_DEFINE2()
|
D | relay.c | 1235 .ops = &relay_pipe_buf_ops, in subbuf_splice_actor()
|
/kernel/locking/ |
D | lockdep_proc.c | 70 seq_printf(m, " OPS:%8ld", class->ops); in l_show()
|
D | lockdep.c | 1375 printk(" ops: %lu", class->ops); in print_lock_class_header() 3084 atomic_inc((atomic_t *)&class->ops); in __lock_acquire()
|