Lines Matching refs:buf

29 		char *buf)  in start_show()  argument
34 return sysfs_emit(buf, "%lu\n", region->ar.start); in start_show()
38 const char *buf, size_t count) in start_store() argument
42 int err = kstrtoul(buf, 0, &region->ar.start); in start_store()
48 char *buf) in end_show() argument
53 return sysfs_emit(buf, "%lu\n", region->ar.end); in end_show()
57 const char *buf, size_t count) in end_store() argument
61 int err = kstrtoul(buf, 0, &region->ar.end); in end_store()
156 struct kobj_attribute *attr, char *buf) in nr_regions_show() argument
161 return sysfs_emit(buf, "%d\n", regions->nr); in nr_regions_show()
165 struct kobj_attribute *attr, const char *buf, size_t count) in nr_regions_store() argument
168 int nr, err = kstrtoint(buf, 0, &nr); in nr_regions_store()
246 struct kobj_attribute *attr, char *buf) in pid_target_show() argument
251 return sysfs_emit(buf, "%d\n", target->pid); in pid_target_show()
255 struct kobj_attribute *attr, const char *buf, size_t count) in pid_target_store() argument
259 int err = kstrtoint(buf, 0, &target->pid); in pid_target_store()
360 struct kobj_attribute *attr, char *buf) in nr_targets_show() argument
365 return sysfs_emit(buf, "%d\n", targets->nr); in nr_targets_show()
369 struct kobj_attribute *attr, const char *buf, size_t count) in nr_targets_store() argument
372 int nr, err = kstrtoint(buf, 0, &nr); in nr_targets_store()
442 struct kobj_attribute *attr, char *buf) in access_bp_show() argument
447 return sysfs_emit(buf, "%lu\n", goal->access_bp); in access_bp_show()
451 struct kobj_attribute *attr, const char *buf, size_t count) in access_bp_store() argument
456 int err = kstrtoul(buf, 0, &nr); in access_bp_store()
466 struct kobj_attribute *attr, char *buf) in aggrs_show() argument
471 return sysfs_emit(buf, "%lu\n", goal->aggrs); in aggrs_show()
475 struct kobj_attribute *attr, const char *buf, size_t count) in aggrs_store() argument
480 int err = kstrtoul(buf, 0, &nr); in aggrs_store()
490 struct kobj_attribute *attr, char *buf) in min_sample_us_show() argument
495 return sysfs_emit(buf, "%lu\n", goal->min_sample_us); in min_sample_us_show()
499 struct kobj_attribute *attr, const char *buf, size_t count) in min_sample_us_store() argument
504 int err = kstrtoul(buf, 0, &nr); in min_sample_us_store()
514 struct kobj_attribute *attr, char *buf) in max_sample_us_show() argument
519 return sysfs_emit(buf, "%lu\n", goal->max_sample_us); in max_sample_us_show()
523 struct kobj_attribute *attr, const char *buf, size_t count) in max_sample_us_store() argument
528 int err = kstrtoul(buf, 0, &nr); in max_sample_us_store()
625 struct kobj_attribute *attr, char *buf) in sample_us_show() argument
630 return sysfs_emit(buf, "%lu\n", intervals->sample_us); in sample_us_show()
634 struct kobj_attribute *attr, const char *buf, size_t count) in sample_us_store() argument
639 int err = kstrtoul(buf, 0, &us); in sample_us_store()
649 char *buf) in aggr_us_show() argument
654 return sysfs_emit(buf, "%lu\n", intervals->aggr_us); in aggr_us_show()
658 const char *buf, size_t count) in aggr_us_store() argument
663 int err = kstrtoul(buf, 0, &us); in aggr_us_store()
673 struct kobj_attribute *attr, char *buf) in update_us_show() argument
678 return sysfs_emit(buf, "%lu\n", intervals->update_us); in update_us_show()
682 struct kobj_attribute *attr, const char *buf, size_t count) in update_us_store() argument
687 int err = kstrtoul(buf, 0, &us); in update_us_store()
948 struct kobj_attribute *attr, char *buf) in avail_operations_show() argument
959 len += sysfs_emit_at(buf, len, "%s\n", ops_name->name); in avail_operations_show()
965 struct kobj_attribute *attr, char *buf) in operations_show() argument
976 return sysfs_emit(buf, "%s\n", ops_name->name); in operations_show()
982 struct kobj_attribute *attr, const char *buf, size_t count) in operations_store() argument
992 if (sysfs_streq(buf, ops_name->name)) { in operations_store()
1098 struct kobj_attribute *attr, char *buf) in nr_contexts_show() argument
1103 return sysfs_emit(buf, "%d\n", contexts->nr); in nr_contexts_show()
1107 struct kobj_attribute *attr, const char *buf, size_t count) in nr_contexts_store() argument
1112 err = kstrtoint(buf, 0, &nr); in nr_contexts_store()
1259 char *buf) in state_show() argument
1271 return sysfs_emit(buf, "%s\n", running ? in state_show()
1679 const char *buf, size_t count) in state_store() argument
1689 if (sysfs_streq(buf, damon_sysfs_cmd_strs[cmd])) { in state_store()
1701 struct kobj_attribute *attr, char *buf) in pid_show() argument
1720 return sysfs_emit(buf, "%d\n", pid); in pid_show()
1724 struct kobj_attribute *attr, char *buf) in refresh_ms_show() argument
1729 return sysfs_emit(buf, "%u\n", kdamond->refresh_ms); in refresh_ms_show()
1733 struct kobj_attribute *attr, const char *buf, size_t count) in refresh_ms_store() argument
1738 int err = kstrtouint(buf, 0, &nr); in refresh_ms_store()
1870 struct kobj_attribute *attr, char *buf) in nr_kdamonds_show() argument
1875 return sysfs_emit(buf, "%d\n", kdamonds->nr); in nr_kdamonds_show()
1879 struct kobj_attribute *attr, const char *buf, size_t count) in nr_kdamonds_store() argument
1884 err = kstrtoint(buf, 0, &nr); in nr_kdamonds_store()