diff --git a/test/syzkaller/qos_auth/active_cpus.txt b/test/syzkaller/qos_auth/active_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..6f19eb761873bfeb998f88aa200cef0e2fd4ab4c --- /dev/null +++ b/test/syzkaller/qos_auth/active_cpus.txt @@ -0,0 +1,9 @@ +include +include +include + + +resource fd_active[fd] +openat$fd_active(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/active_cpus"]], flags const[O_RDWR], mode const[0]) fd_active + +write$ACTIVE_INT(fd fd_active, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/auth_ctrl.txt b/test/syzkaller/qos_auth/auth_ctrl.txt new file mode 100644 index 0000000000000000000000000000000000000000..e43abb8113683ccaf86c26bf7da96df4b52ab59b --- /dev/null +++ b/test/syzkaller/qos_auth/auth_ctrl.txt @@ -0,0 +1,19 @@ +include +include +include +include + +resource fd_auth_ctrl[fd] + +openat$fd_auth_ctrl(fd const[AT_FDCWD], file ptr[in, string["/dev/auth_ctrl"]], flags const[O_RDWR], mode const[0]) fd_auth_ctrl +close$fd_auth_ctrl(fd fd_auth_ctrl) + +ioctl$CTRL_AUTH_BASIC_OPERATION(fd fd_auth_ctrl, cmd const[BASIC_AUTH_CTRL_OPERATION], arg ptr[inout, auth_ctrl_data]) + +auth_ctrl_data { + uid int32 + type int32 + rtg_ua_flag int32 + qos_ua_flag int32 + status int32 +} \ No newline at end of file diff --git a/test/syzkaller/qos_auth/boost.txt b/test/syzkaller/qos_auth/boost.txt new file mode 100644 index 0000000000000000000000000000000000000000..50ba4b6640ce8ff6e6f654a22b09faba689aa8c1 --- /dev/null +++ b/test/syzkaller/qos_auth/boost.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_boost[fd] + +openat$fd_boost(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/boost/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_boost + +type read_boost array[int8, 1024] +read$BOOST(fd fd_boost, buf ptr[out, read_boost], len bytesize[buf]) + +write$BOOST_INT(fd fd_boost, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/enable.txt b/test/syzkaller/qos_auth/enable.txt new file mode 100644 index 0000000000000000000000000000000000000000..ff9f4524e45b48f7d6b217661b092c0e52058430 --- /dev/null +++ b/test/syzkaller/qos_auth/enable.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_enable[fd] +openat$fd_enable(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/enable"]], flags const[O_RDWR], mode const[0]) fd_enable + +write$ENABLE_INT(fd fd_enable, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/foreground.txt b/test/syzkaller/qos_auth/foreground.txt new file mode 100644 index 0000000000000000000000000000000000000000..95de006941a73f77c445425a2cd5865e47a7b6b2 --- /dev/null +++ b/test/syzkaller/qos_auth/foreground.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_foreground[fd] + +openat$fd_foreground(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/foreground/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_foreground + +type read_foreground array[int8, 1024] +read$FOREGROUND(fd fd_foreground, buf ptr[out, read_foreground ], len bytesize[buf]) + +write$FOREGROUND_INT(fd fd_foreground, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/global_state.txt b/test/syzkaller/qos_auth/global_state.txt new file mode 100644 index 0000000000000000000000000000000000000000..21053c22b903d0eaf043af2d30be25e2fa014d80 --- /dev/null +++ b/test/syzkaller/qos_auth/global_state.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_store_global[fd] +openat$fd_store_global(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/global_state"]], flags const[O_RDWR], mode const[0]) fd_store_global + +write$GLOBAL_INT(fd fd_store_global, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/graphic.txt b/test/syzkaller/qos_auth/graphic.txt new file mode 100644 index 0000000000000000000000000000000000000000..22c028e5194ae0c6b8890c42d7a3c2f4d8c71155 --- /dev/null +++ b/test/syzkaller/qos_auth/graphic.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_graphic[fd] + +openat$fd_graphic(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/graphic/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_graphic + +type read_graphic array[int8, 1024] +read$GRAOHIC(fd fd_graphic, buf ptr[out, read_graphic], len bytesize[buf]) + +write$GRAPHIC_INT(fd fd_graphic, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/key_background.txt b/test/syzkaller/qos_auth/key_background.txt new file mode 100644 index 0000000000000000000000000000000000000000..13a8dc45b2ad9597f6f1770a16eda2524c083e4e --- /dev/null +++ b/test/syzkaller/qos_auth/key_background.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_key_background[fd] + +openat$fd_key_background(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/key_background/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_key_background + +type read_key_background array[int8, 1024] +read$KEY_BACKGROUND(fd fd_key_background, buf ptr[out, read_key_background], len bytesize[buf]) + +write$KEY_BACKGROUND(fd fd_key_background, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/latency_nice.txt b/test/syzkaller/qos_auth/latency_nice.txt new file mode 100644 index 0000000000000000000000000000000000000000..bf9dc9ff40c28ec765d78eb0232132bc7ab0cfb4 --- /dev/null +++ b/test/syzkaller/qos_auth/latency_nice.txt @@ -0,0 +1,77 @@ +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include +include + +sched_setattr(pid pid, attr ptr[in, sched_attr], flags const[0]) + +sched_attr { + size bytesize[parent, int32] + sched_policy flags[sched_policy, int32] + sched_flags flags[sched_attr_flags, int64] + sched_nice int32 + sched_priority int32 + sched_runtime int64 + sched_deadline int64 + sched_period int64 + sched_util_min int32 + sched_util_max int32 + sched_latency_nice int32 +} + +sched_policy = SCHED_NORMAL, SCHED_FIFO, SCHED_RR, SCHED_BATCH, SCHED_IDLE, SCHED_DEADLINE +sched_attr_flags = SCHED_FLAG_RESET_ON_FORK, SCHED_FLAG_RECLAIM, SCHED_FLAG_DL_OVERRUN, SCHED_FLAG_KEEP_POLICY, SCHED_FLAG_KEEP_PARAMS, SCHED_FLAG_UTIL_CLAMP_MIN, SCHED_FLAG_UTIL_CLAMP_MAX, SCHED_FLAG_SUGOV, SCHED_FLAG_LATENCY_NICE \ No newline at end of file diff --git a/test/syzkaller/qos_auth/max_cpus.txt b/test/syzkaller/qos_auth/max_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..709fc6b286a6bf8f3072763432619943690e1cf6 --- /dev/null +++ b/test/syzkaller/qos_auth/max_cpus.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_store_max[fd] +openat$fd_store_max(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/max_cpus"]], flags const[O_RDWR], mode const[0]) fd_store_max + +write$MAX_INT(fd fd_store_max, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/min_cpus.txt b/test/syzkaller/qos_auth/min_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..cc60eb9fd0333fc15b40b0d8779a84a7e49a9dca --- /dev/null +++ b/test/syzkaller/qos_auth/min_cpus.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_store_min[fd] +openat$fd_store_min(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/min_cpus"]], flags const[O_RDWR], mode const[0]) fd_store_min + +write$MIN_INT(fd fd_store_min, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/need_cpus.txt b/test/syzkaller/qos_auth/need_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..0b0596471a8fb93c26f1b9b902f12735b24dc996 --- /dev/null +++ b/test/syzkaller/qos_auth/need_cpus.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_store_need[fd] +openat$fd_store_need(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/need_cpus"]], flags const[O_RDWR], mode const[0]) fd_store_need + +write$NEED_INT(fd fd_store_need, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/opt_background.txt b/test/syzkaller/qos_auth/opt_background.txt new file mode 100644 index 0000000000000000000000000000000000000000..89f77b8e5deb2ffa9d6d0975b0e24c06acb77e18 --- /dev/null +++ b/test/syzkaller/qos_auth/opt_background.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_opt_background[fd] + +openat$fd_opt_background(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/opt_background/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_opt_background + +type read_opt_background array[int8, 1024] +read$OPT_BACKGROUND(fd fd_opt_background, buf ptr[out, read_opt_background], len bytesize[buf]) + +write$OPT_BACKGROUND_INT(fd fd_opt_background, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/proc_pid_sched_group_id_operations.txt b/test/syzkaller/qos_auth/proc_pid_sched_group_id_operations.txt new file mode 100644 index 0000000000000000000000000000000000000000..f40428d020e135c78a1a8d8ebe47212de8d2d8de --- /dev/null +++ b/test/syzkaller/qos_auth/proc_pid_sched_group_id_operations.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_sched_groupid[fd] + +openat$fd_sched_groupid(fd const[AT_FDCWD], file ptr[in, string["/proc/thread-self/sched_group_id"]], flags const[O_RDWR], mode const[0]) fd_sched_groupid + +type read_sched_group array[int8, 1024] +read$SCHED_GROUP(fd fd_sched_groupid, buf ptr[out, read_sched_group], len bytesize[buf]) + +write$SCHED_INT(fd fd_sched_groupid, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/qosctrl.txt b/test/syzkaller/qos_auth/qosctrl.txt new file mode 100644 index 0000000000000000000000000000000000000000..bdf042241cf0acc5685c911fe893a33814381608 --- /dev/null +++ b/test/syzkaller/qos_auth/qosctrl.txt @@ -0,0 +1,18 @@ +include +include +include +include + +resource fd_qos_ctrl[fd] + +openat$fd_qos_ctrl(fd const[AT_FDCWD], file ptr[in, string["/proc/thread-self/sched_qos_ctrl"]], flags const[O_RDWR], mode const[0]) fd_qos_ctrl +close$fd_qos_ctrl(fd fd_qos_ctrl) + +ioctl$QOS_CTRL_BASIC_OPERATION(fd fd_qos_ctrl, cmd const[QOS_CTRL_BASIC_OPERATION], arg ptr[inout, qos_ctrl_data]) +ioctl$QOS_CTRL_POLICY_OPERATION(fd fd_qos_ctrl, cmd const[QOS_CTRL_POLICY_OPERATION], arg ptr[inout, qos_ctrl_data]) + +qos_ctrl_data { + pid int32 + type int32 + level int32 +} \ No newline at end of file diff --git a/test/syzkaller/qos_auth/rtg_ctrl.txt b/test/syzkaller/qos_auth/rtg_ctrl.txt new file mode 100644 index 0000000000000000000000000000000000000000..2574d802f890f8b750eb4d82e8a5b1865c935c25 --- /dev/null +++ b/test/syzkaller/qos_auth/rtg_ctrl.txt @@ -0,0 +1,43 @@ +include +include +include +include + +resource fd_rtg_ctrl[fd] + +openat$fd_rtg_ctrl(fd const[AT_FDCWD],file ptr[in,string["/proc/self/sched_rtg_ctrl"]],flags const[O_RDWR],mode const[0]) fd_rtg_ctrl +close$fd_rtg_ctrl(fd fd_rtg_ctrl) + +ioctl$CMD_ID_SET_ENABLE(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_ENABLE],arg ptr[inout,rtg_enable_data]) +ioctl$CMD_ID_SET_RTG(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_RTG],arg ptr[inout,rtg_grp_data]) +ioctl$CMD_ID_SET_CONFIG(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_CONFIG],arg ptr[inout,rtg_str_data]) +ioctl$CMD_ID_SET_RTG_ATTR(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_RTG_ATTR],arg ptr[inout,rtg_str_data]) +ioctl$CMD_ID_BEGIN_FRAME_FREQ(fd fd_rtg_ctrl,cmd const[CMD_ID_BEGIN_FRAME_FREQ],arg ptr[inout,proc_state_data]) +ioctl$CMD_ID_END_FRAME_FREQ(fd fd_rtg_ctrl,cmd const[CMD_ID_END_FRAME_FREQ],arg ptr[inout,proc_state_data]) +ioctl$CMD_ID_END_SCENE(fd fd_rtg_ctrl,cmd const[CMD_ID_END_SCENE],arg ptr[inout,proc_state_data]) + +rtg_enable_data{ + enable int32 + len int32 + data ptr[inout, int8] +} + +rtg_grp_data { + rtg_cmd int32 + grp_id int32 + prio_type int32 + rt_cnt int32 + tid_num int32 + tids array[int32, 5] +} + +rtg_str_data { + type int32 + len int32 + data ptr[inout, int8] +} + +proc_state_data { + grp_id int32 + state_param int32 +} diff --git a/test/syzkaller/qos_auth/rtg_ctrl_fops.txt b/test/syzkaller/qos_auth/rtg_ctrl_fops.txt new file mode 100644 index 0000000000000000000000000000000000000000..d422650e2372ac1523b677363c47be8c3e5dd869 --- /dev/null +++ b/test/syzkaller/qos_auth/rtg_ctrl_fops.txt @@ -0,0 +1,43 @@ +include +include +include +include + +resource fd_rtg_ctrl_fops[fd] + +openat$fd_rtg_ctrl_fops(fd const[AT_FDCWD],file ptr[in,string["/dev/sched_rtg_ctrl"]],flags const[O_RDWR],mode const[0]) fd_rtg_ctrl_fops +close$fd_rtg_ctrl_fops(fd fd_rtg_ctrl_fops) + +ioctl$CMD_ID_SET_ENABLE_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_ENABLE],arg ptr[inout,rtg_enable_data_fops]) +ioctl$CMD_ID_SET_RTG_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_RTG],arg ptr[inout,rtg_grp_data_fops]) +ioctl$CMD_ID_SET_CONFIG_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_CONFIG],arg ptr[inout,rtg_str_data_fops]) +ioctl$CMD_ID_SET_RTG_ATTR_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_RTG_ATTR],arg ptr[inout,rtg_str_data_fops]) +ioctl$CMD_ID_BEGIN_FRAME_FREQ_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_BEGIN_FRAME_FREQ],arg ptr[inout,proc_state_data_fops]) +ioctl$CMD_ID_END_FRAME_FREQ_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_END_FRAME_FREQ],arg ptr[inout,proc_state_data_fops]) +ioctl$CMD_ID_END_SCENE_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_END_SCENE],arg ptr[inout,proc_state_data_fops]) + +rtg_enable_data_fops { + enable int32 + len int32 + data ptr[inout, int8] +} + +rtg_grp_data_fops { + rtg_cmd int32 + grp_id int32 + prio_type int32 + rt_cnt int32 + tid_num int32 + tids array[int32, 5] +} + +rtg_str_data_fops { + type int32 + len int32 + data ptr[inout, int8] +} + +proc_state_data_fops { + grp_id int32 + state_param int32 +} diff --git a/test/syzkaller/qos_auth/sched_cluster_fops.txt b/test/syzkaller/qos_auth/sched_cluster_fops.txt new file mode 100644 index 0000000000000000000000000000000000000000..f8055ccfb5992105807707485c3db4e32428ea41 --- /dev/null +++ b/test/syzkaller/qos_auth/sched_cluster_fops.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_sched_cluster[fd] + +openat$fd_sched_cluster(fd const[AT_FDCWD], file ptr[in, string["/proc/sched_cluster"]], flags const[O_RDWR], mode const[0]) fd_sched_cluster + +type read_sched_cluster array[int8, 1024] +read$SCHED_CLUSTER(fd fd_sched_cluster, buf ptr[out, read_sched_cluster], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/sched_cpu_high_irqload.txt b/test/syzkaller/qos_auth/sched_cpu_high_irqload.txt new file mode 100644 index 0000000000000000000000000000000000000000..1ae85c2a8f04ff9c3c5f598bd280b973b02027fa --- /dev/null +++ b/test/syzkaller/qos_auth/sched_cpu_high_irqload.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_cpu_high[fd] +openat$fd_cpu_high(fd const[AT_FDCWD], file ptr[in, string["/proc/sys/kernel/sched_cpu_high_irqload"]], flags const[O_RDWR], mode const[0]) fd_cpu_high + +write$HIGH_INT(fd fd_cpu_high, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/sched_rtg_debug_fops.txt b/test/syzkaller/qos_auth/sched_rtg_debug_fops.txt new file mode 100644 index 0000000000000000000000000000000000000000..670bb7ea46b59ecb36f5a86915ca56a9b96c51bf --- /dev/null +++ b/test/syzkaller/qos_auth/sched_rtg_debug_fops.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_sched_rtg_debug[fd] + +openat$fd_sched_rtg_debug(fd const[AT_FDCWD], file ptr[in, string["/proc/sched_rtg_debug"]], flags const[O_RDWR], mode const[0]) fd_sched_rtg_debug + +type read_sched_rtg_debug array[int8, 1024] +read$SCHEDRTG(fd fd_sched_rtg_debug, buf ptr[out, read_sched_rtg_debug], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/sched_use_walt_cpu_util.txt b/test/syzkaller/qos_auth/sched_use_walt_cpu_util.txt new file mode 100644 index 0000000000000000000000000000000000000000..10039222aaf17f90fcf9c06073889e7a72c048d7 --- /dev/null +++ b/test/syzkaller/qos_auth/sched_use_walt_cpu_util.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_walt_cpu[fd] +openat$fd_walt_cpu(fd const[AT_FDCWD], file ptr[in, string["/proc/sys/kernel/sched_use_walt_cpu_util"]], flags const[O_RDWR], mode const[0]) fd_walt_cpu + +write$CPU_INT(fd fd_walt_cpu, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/sched_use_walt_task_util.txt b/test/syzkaller/qos_auth/sched_use_walt_task_util.txt new file mode 100644 index 0000000000000000000000000000000000000000..e05a972697bb3c15ae7a936e6e5bb2f215541839 --- /dev/null +++ b/test/syzkaller/qos_auth/sched_use_walt_task_util.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_walt_task[fd] +openat$fd_walt_task(fd const[AT_FDCWD], file ptr[in, string["/proc/sys/kernel/sched_use_walt_task_util"]], flags const[O_RDWR], mode const[0]) fd_walt_task + +write$TASK_INT(fd fd_walt_task, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/sched_walt_init_task_load_pct.txt b/test/syzkaller/qos_auth/sched_walt_init_task_load_pct.txt new file mode 100644 index 0000000000000000000000000000000000000000..f5063c0ef72e3fa4a956fa87418b7e5c0e2ee00f --- /dev/null +++ b/test/syzkaller/qos_auth/sched_walt_init_task_load_pct.txt @@ -0,0 +1,8 @@ +include +include +include + +resource fd_load_pct[fd] +openat$fd_load_pct(fd const[AT_FDCWD], file ptr[in, string["/proc/sys/kernel/sched_walt_init_task_load_pct"]], flags const[O_RDWR], mode const[0]) fd_load_pct + +write$PCT_INT(fd fd_load_pct, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/show_active_cpus.txt b/test/syzkaller/qos_auth/show_active_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..c6610013be7e4098ecc6a19fd9e023a4da841803 --- /dev/null +++ b/test/syzkaller/qos_auth/show_active_cpus.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_show_activecpus[fd] + +openat$fd_show_activecpus(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/active_cpus"]], flags const[O_RDWR], mode const[0]) fd_show_activecpus + +type read_activecpus array[int8, 1024] +read$ACTIVECPUS(fd fd_show_activecpus, buf ptr[out, read_activecpus], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/show_enable.txt b/test/syzkaller/qos_auth/show_enable.txt new file mode 100644 index 0000000000000000000000000000000000000000..8e0b416fb6f3487403234bdf81490dce9a33b942 --- /dev/null +++ b/test/syzkaller/qos_auth/show_enable.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_show_enable[fd] + +openat$fd_show_enable(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/enable"]], flags const[O_RDWR], mode const[0]) fd_show_enable + +type read_enable array[int8, 1024] +read$ENABLE(fd fd_show_enable, buf ptr[out, read_enable], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/show_global_state.txt b/test/syzkaller/qos_auth/show_global_state.txt new file mode 100644 index 0000000000000000000000000000000000000000..085bf57422bedf2eb5f635c50f578230c69afe69 --- /dev/null +++ b/test/syzkaller/qos_auth/show_global_state.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_show_global[fd] + +openat$fd_show_global(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/global_state"]], flags const[O_RDWR], mode const[0]) fd_show_global + +type read_global array[int8, 1024] +read$GLOBAL(fd fd_show_global, buf ptr[out, read_global], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/show_max_cpus.txt b/test/syzkaller/qos_auth/show_max_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..2cdd43fee309c97f529311d5f5f26630cdfabf4a --- /dev/null +++ b/test/syzkaller/qos_auth/show_max_cpus.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_show_maxcpus[fd] + +openat$fd_show_maxcpus(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/max_cpus"]], flags const[O_RDWR], mode const[0]) fd_show_maxcpus + +type read_maxcpus array[int8, 1024] +read$MAXCPUS(fd fd_show_maxcpus, buf ptr[out, read_maxcpus], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/show_min_cpus.txt b/test/syzkaller/qos_auth/show_min_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..2b8236b5b8c3149b0405f679bd0b823510262864 --- /dev/null +++ b/test/syzkaller/qos_auth/show_min_cpus.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_show_mincpus[fd] + +openat$fd_show_mincpus(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/min_cpus"]], flags const[O_RDWR], mode const[0]) fd_show_mincpus + +type read_mincpus array[int8, 1024] +read$MINCPUS(fd fd_show_mincpus, buf ptr[out, read_mincpus], len bytesize[buf]) diff --git a/test/syzkaller/qos_auth/show_need_cpus.txt b/test/syzkaller/qos_auth/show_need_cpus.txt new file mode 100644 index 0000000000000000000000000000000000000000..e7fc5d4efc09f108b646db39f4f5733ab6ae19d1 --- /dev/null +++ b/test/syzkaller/qos_auth/show_need_cpus.txt @@ -0,0 +1,10 @@ +include +include +include + +resource fd_show_needcpus[fd] + +openat$fd_show_needcpus(fd const[AT_FDCWD], file ptr[in, string["/sys/devices/system/cpu/cpu0/core_ctl/need_cpus"]], flags const[O_RDWR], mode const[0]) fd_show_needcpus + +type read_needcpus array[int8, 1024] +read$NEEDCPUS(fd fd_show_needcpus, buf ptr[out, read_needcpus], len bytesize[buf]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/system_background.txt b/test/syzkaller/qos_auth/system_background.txt new file mode 100644 index 0000000000000000000000000000000000000000..8cfbb06ec2704e686fc16c4faf9caad4001b22f6 --- /dev/null +++ b/test/syzkaller/qos_auth/system_background.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_system_background[fd] + +openat$fd_system_background(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/system_background/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_system_background + +type read_system_background array[int8, 1024] +read$SYSTEM_BACKGROUND(fd fd_system_background, buf ptr[out, read_system_background ], len bytesize[buf]) + +write$SYSTEM_BACKGROUND_INT(fd fd_system_background, data ptr[in, int32], len bytesize[data]) \ No newline at end of file diff --git a/test/syzkaller/qos_auth/top-app.txt b/test/syzkaller/qos_auth/top-app.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ffc2d5f90c3516ee12c64e10e731e2f5ba9d442 --- /dev/null +++ b/test/syzkaller/qos_auth/top-app.txt @@ -0,0 +1,12 @@ +include +include +include + +resource fd_top_app[fd] + +openat$fd_top_app(fd const[AT_FDCWD], file ptr[in, string["/dev/cpu_ctl/top-app/uclamp.colocate"]], flags const[O_RDWR], mode const[0]) fd_top_app + +type read_top_app array[int8, 1024] +read$TOP_APP(fd fd_top_app, buf ptr[out, read_top_app ], len bytesize[buf]) + +write$TOP_APP(fd fd_top_app, data ptr[in, int32], len bytesize[data]) \ No newline at end of file