Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 28) sorted by relevance

12

/kernel/bpf/
Dsyscall.c22 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map() argument
28 if (tl->type == attr->map_type) { in find_and_alloc_map()
29 map = tl->ops->map_alloc(attr); in find_and_alloc_map()
33 map->map_type = attr->map_type; in find_and_alloc_map()
80 memchr_inv((void *) &attr->CMD##_LAST_FIELD + \
81 sizeof(attr->CMD##_LAST_FIELD), 0, \
82 sizeof(*attr) - \
84 sizeof(attr->CMD##_LAST_FIELD)) != NULL
88 static int map_create(union bpf_attr *attr) in map_create() argument
98 map = find_and_alloc_map(attr); in map_create()
[all …]
Dtest_stub.c81 static struct bpf_map *test_map_alloc(union bpf_attr *attr) in test_map_alloc() argument
89 map->key_size = attr->key_size; in test_map_alloc()
90 map->value_size = attr->value_size; in test_map_alloc()
91 map->max_entries = attr->max_entries; in test_map_alloc()
Dverifier.c1827 int bpf_check(struct bpf_prog *prog, union bpf_attr *attr) in bpf_check() argument
1848 if (attr->log_level || attr->log_buf || attr->log_size) { in bpf_check()
1852 log_level = attr->log_level; in bpf_check()
1853 log_ubuf = (char __user *) (unsigned long) attr->log_buf; in bpf_check()
1854 log_size = attr->log_size; in bpf_check()
/kernel/
Dksysfs.c34 struct kobj_attribute *attr, char *buf) in uevent_seqnum_show() argument
43 struct kobj_attribute *attr, char *buf) in uevent_helper_show() argument
48 struct kobj_attribute *attr, in uevent_helper_store() argument
64 struct kobj_attribute *attr, char *buf) in profiling_show() argument
69 struct kobj_attribute *attr, in profiling_store() argument
95 struct kobj_attribute *attr, char *buf) in kexec_loaded_show() argument
102 struct kobj_attribute *attr, char *buf) in kexec_crash_loaded_show() argument
109 struct kobj_attribute *attr, char *buf) in kexec_crash_size_show() argument
114 struct kobj_attribute *attr, in kexec_crash_size_store() argument
129 struct kobj_attribute *attr, char *buf) in vmcoreinfo_show() argument
[all …]
Dpadata.c894 container_of(_attr, struct padata_sysfs_entry, attr)
903 struct attribute attr; member
910 struct attribute *attr, char *buf) in show_cpumask() argument
916 if (!strcmp(attr->name, "serial_cpumask")) in show_cpumask()
933 struct attribute *attr, in store_cpumask() argument
948 mask_type = !strcmp(attr->name, "serial_cpumask") ? in store_cpumask()
975 &serial_cpumask_attr.attr,
976 &parallel_cpumask_attr.attr,
981 struct attribute *attr, char *buf) in padata_sysfs_show() argument
988 pentry = attr2pentry(attr); in padata_sysfs_show()
[all …]
Dparams.c514 #define to_module_attr(n) container_of(n, struct module_attribute, attr)
647 sysfs_attr_init(&new->attrs[num].mattr.attr); in add_sysfs_param()
651 new->attrs[num].mattr.attr.name = (char *)name; in add_sysfs_param()
652 new->attrs[num].mattr.attr.mode = kp->perm; in add_sysfs_param()
657 new->grp.attrs[num] = &new->attrs[num].mattr.attr; in add_sysfs_param()
759 err = sysfs_create_file(&mk->kobj, &module_uevent.attr); in locate_module_kobject()
857 err = sysfs_create_file(&mk->kobj, &vattr->mattr.attr); in version_sysfs_builtin()
867 struct attribute *attr, in module_attr_show() argument
874 attribute = to_module_attr(attr); in module_attr_show()
886 struct attribute *attr, in module_attr_store() argument
[all …]
Dmodule.c618 .attr = { .name = __stringify(field), .mode = 0444 }, \
1365 sysfs_attr_init(&sattr->mattr.attr); in add_sect_attrs()
1368 sattr->mattr.attr.name = sattr->name; in add_sect_attrs()
1369 sattr->mattr.attr.mode = S_IRUGO; in add_sect_attrs()
1370 *(gattr++) = &(sattr++)->mattr.attr; in add_sect_attrs()
1461 nattr->attr.name = mod->sect_attrs->attrs[loaded].name; in add_notes_attrs()
1462 nattr->attr.mode = S_IRUGO; in add_notes_attrs()
1543 struct module_attribute *attr; in module_add_modinfo_attrs() local
1555 for (i = 0; (attr = modinfo_attrs[i]) && !error; i++) { in module_add_modinfo_attrs()
1556 if (!attr->test || in module_add_modinfo_attrs()
[all …]
Dauditsc.c1244 context->mq_open.attr.mq_flags, in show_special()
1245 context->mq_open.attr.mq_maxmsg, in show_special()
1246 context->mq_open.attr.mq_msgsize, in show_special()
1247 context->mq_open.attr.mq_curmsgs); in show_special()
1265 struct mq_attr *attr = &context->mq_getsetattr.mqstat; in show_special() local
1270 attr->mq_flags, attr->mq_maxmsg, in show_special()
1271 attr->mq_msgsize, attr->mq_curmsgs); in show_special()
2133 void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) in __audit_mq_open() argument
2137 if (attr) in __audit_mq_open()
2138 memcpy(&context->mq_open.attr, attr, sizeof(struct mq_attr)); in __audit_mq_open()
[all …]
Dworkqueue.c3029 static ssize_t per_cpu_show(struct device *dev, struct device_attribute *attr, in per_cpu_show() argument
3039 struct device_attribute *attr, char *buf) in max_active_show() argument
3047 struct device_attribute *attr, const char *buf, in max_active_store() argument
3062 &dev_attr_per_cpu.attr,
3063 &dev_attr_max_active.attr,
3069 struct device_attribute *attr, char *buf) in wq_pool_ids_show() argument
3088 static ssize_t wq_nice_show(struct device *dev, struct device_attribute *attr, in wq_nice_show() argument
3116 static ssize_t wq_nice_store(struct device *dev, struct device_attribute *attr, in wq_nice_store() argument
3138 struct device_attribute *attr, char *buf) in wq_cpumask_show() argument
3152 struct device_attribute *attr, in wq_cpumask_store() argument
[all …]
Daudit.h195 struct mq_attr attr; member
/kernel/power/
Dmain.c58 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show() argument
64 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store() argument
93 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show() argument
114 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store() argument
255 struct kobj_attribute *attr, char *buf) in pm_print_times_show() argument
261 struct kobj_attribute *attr, in pm_print_times_store() argument
298 static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, in state_show() argument
345 static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr, in state_store() argument
405 struct kobj_attribute *attr, in wakeup_count_show() argument
415 struct kobj_attribute *attr, in wakeup_count_store() argument
[all …]
Dhibernate.c912 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show() argument
946 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store() argument
996 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show() argument
1003 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store() argument
1032 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show() argument
1038 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store() argument
1054 struct kobj_attribute *attr, char *buf) in reserved_size_show() argument
1060 struct kobj_attribute *attr, in reserved_size_store() argument
1076 &disk_attr.attr,
1077 &resume_attr.attr,
[all …]
Dwakeup_reason.c48 static ssize_t last_resume_reason_show(struct kobject *kobj, struct kobj_attribute *attr, in last_resume_reason_show() argument
72 struct kobj_attribute *attr, char *buf) in last_suspend_time_show() argument
103 &resume_reason.attr,
104 &suspend_time.attr,
Dpower.h72 .attr = { \
/kernel/events/
Dhw_breakpoint.c90 if (bp->attr.bp_type & HW_BREAKPOINT_RW) in find_slot_idx()
291 if (bp->attr.bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot()
292 bp->attr.bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot()
379 if (bp->attr.exclude_kernel) in validate_hw_breakpoint()
416 register_user_hw_breakpoint(struct perf_event_attr *attr, in register_user_hw_breakpoint() argument
421 return perf_event_create_kernel_counter(attr, -1, tsk, triggered, in register_user_hw_breakpoint()
433 int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) in modify_user_hw_breakpoint() argument
435 u64 old_addr = bp->attr.bp_addr; in modify_user_hw_breakpoint()
436 u64 old_len = bp->attr.bp_len; in modify_user_hw_breakpoint()
437 int old_type = bp->attr.bp_type; in modify_user_hw_breakpoint()
[all …]
Dcore.c611 struct perf_event_attr *attr, in perf_cgroup_connect() argument
727 struct perf_event_attr *attr, in perf_cgroup_connect() argument
1196 if (event->attr.pinned) in ctx_group_list()
1237 if (event->attr.inherit_stat) in list_add_event()
1248 event->state = event->attr.disabled ? PERF_EVENT_STATE_OFF : in perf_event__state_init()
1262 if (event->attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) in perf_event__read_size()
1265 if (event->attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) in perf_event__read_size()
1268 if (event->attr.read_format & PERF_FORMAT_ID) in perf_event__read_size()
1271 if (event->attr.read_format & PERF_FORMAT_GROUP) { in perf_event__read_size()
1283 u64 sample_type = event->attr.sample_type; in perf_event__header_size()
[all …]
Dcallchain.c165 int kernel = !event->attr.exclude_callchain_kernel; in perf_callchain()
166 int user = !event->attr.exclude_callchain_user; in perf_callchain()
/kernel/sched/
Dcore.c2339 const struct sched_attr *attr) in dl_overflow() argument
2343 u64 period = attr->sched_period ?: attr->sched_deadline; in dl_overflow()
2344 u64 runtime = attr->sched_runtime; in dl_overflow()
3684 __setparam_dl(struct task_struct *p, const struct sched_attr *attr) in __setparam_dl() argument
3688 dl_se->dl_runtime = attr->sched_runtime; in __setparam_dl()
3689 dl_se->dl_deadline = attr->sched_deadline; in __setparam_dl()
3690 dl_se->dl_period = attr->sched_period ?: dl_se->dl_deadline; in __setparam_dl()
3691 dl_se->flags = attr->sched_flags; in __setparam_dl()
3722 const struct sched_attr *attr) in __setscheduler_params() argument
3724 int policy = attr->sched_policy; in __setscheduler_params()
[all …]
Dcpufreq_sched.c471 &up_throttle_nsec_gov_pol.attr,
472 &down_throttle_nsec_gov_pol.attr,
/kernel/trace/
Dblktrace.c1546 struct device_attribute *attr,
1549 struct device_attribute *attr,
1563 &dev_attr_enable.attr,
1564 &dev_attr_act_mask.attr,
1565 &dev_attr_pid.attr,
1566 &dev_attr_start_lba.attr,
1567 &dev_attr_end_lba.attr,
1657 struct device_attribute *attr, in sysfs_blk_trace_attr_show() argument
1675 if (attr == &dev_attr_enable) { in sysfs_blk_trace_attr_show()
1682 else if (attr == &dev_attr_act_mask) in sysfs_blk_trace_attr_show()
[all …]
Dtrace_event_perf.c55 if (!p_event->attr.exclude_callchain_user) in perf_trace_event_perm()
62 if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) in perf_trace_event_perm()
67 if (!(p_event->attr.sample_type & PERF_SAMPLE_RAW)) in perf_trace_event_perm()
210 u64 event_id = p_event->attr.config; in perf_trace_init()
Dtrace_selftest.c1041 static const struct sched_attr attr = { in trace_wakeup_test_thread() local
1049 sched_setattr(current, &attr); in trace_wakeup_test_thread()
/kernel/time/
Dclocksource.c827 struct device_attribute *attr, char *buf) in sysfs_show_current_clocksources() argument
866 struct device_attribute *attr, in sysfs_override_clocksource() argument
892 struct device_attribute *attr, in sysfs_unbind_clocksource() argument
926 struct device_attribute *attr, in sysfs_show_available_clocksources() argument
Dclockevents.c623 struct device_attribute *attr, in sysfs_show_current_tick_dev() argument
640 struct device_attribute *attr, in sysfs_unbind_tick_dev() argument
/kernel/locking/
Drtmutex-tester.c276 static ssize_t sysfs_test_command(struct device *dev, struct device_attribute *attr, in sysfs_test_command() argument
339 static ssize_t sysfs_test_status(struct device *dev, struct device_attribute *attr, in sysfs_test_status() argument

12