blob: 6b9b1ee307ae84395ffefbf68912edb8d68adf44 [file] [log] [blame]
Robin Pengc2b5ca92021-02-23 20:00:28 +08001{
2 "Profiles": [
3 {
4 "Name": "MaxPerformance",
5 "Actions": [
6 {
Jia-yi Chena6889fd2021-05-11 01:49:37 +00007 "Name": "WriteFile",
8 "Params":
9 {
guibinge9d93022023-08-01 20:53:18 +000010 "FilePath": "/proc/vendor_sched/groups/ta/set_task_group",
11 "ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group",
Jia-yi Chena6889fd2021-05-11 01:49:37 +000012 "Value": "<pid>",
13 "LogFailures": "false"
14 }
Robin Pengc2b5ca92021-02-23 20:00:28 +080015 }
16 ]
17 },
18 {
19 "Name": "CameraServicePerformance",
20 "Actions": [
21 {
Robin Pengc2b5ca92021-02-23 20:00:28 +080022 "Name": "WriteFile",
23 "Params":
24 {
guibinge9d93022023-08-01 20:53:18 +000025 "FilePath": "/proc/vendor_sched/groups/cam/set_task_group",
26 "ProcFilePath": "/proc/vendor_sched/groups/cam/set_proc_group",
Robin Pengc2b5ca92021-02-23 20:00:28 +080027 "Value": "<pid>",
Rick Yiue8d7fb72021-04-08 21:28:58 +080028 "LogFailures": "false"
Robin Pengc2b5ca92021-02-23 20:00:28 +080029 }
30 }
31 ]
32 },
33 {
Rick Yiu853246a2021-07-23 17:37:04 +080034 "Name": "CameraServicePower",
35 "Actions": [
36 {
Rick Yiu853246a2021-07-23 17:37:04 +080037 "Name": "WriteFile",
38 "Params":
39 {
guibinge9d93022023-08-01 20:53:18 +000040 "FilePath": "/proc/vendor_sched/groups/cam_power/set_task_group",
41 "ProcFilePath": "/proc/vendor_sched/groups/cam_power/set_proc_group",
Rick Yiu853246a2021-07-23 17:37:04 +080042 "Value": "<pid>",
43 "LogFailures": "false"
44 }
45 }
46 ]
47 },
48 {
Rick Yiu1b069622021-10-21 12:00:17 +080049 "Name": "Dex2oatPerformance",
50 "Actions": [
51 {
Rick Yiu1b069622021-10-21 12:00:17 +080052 "Name": "WriteFile",
53 "Params":
54 {
guibinge9d93022023-08-01 20:53:18 +000055 "FilePath": "/proc/vendor_sched/groups/dex2oat/set_task_group",
56 "ProcFilePath": "/proc/vendor_sched/groups/dex2oat/set_proc_group",
Rick Yiu1b069622021-10-21 12:00:17 +080057 "Value": "<pid>",
58 "LogFailures": "false"
59 }
60 }
61 ]
62 },
63 {
Rick Yiu219111e2021-12-07 16:03:40 +080064 "Name": "OtaPerformance",
65 "Actions": [
66 {
Rick Yiu219111e2021-12-07 16:03:40 +080067 "Name": "WriteFile",
68 "Params":
69 {
guibinge9d93022023-08-01 20:53:18 +000070 "FilePath": "/proc/vendor_sched/groups/ota/set_task_group",
71 "ProcFilePath": "/proc/vendor_sched/groups/ota/set_proc_group",
Rick Yiu219111e2021-12-07 16:03:40 +080072 "Value": "<pid>",
73 "LogFailures": "false"
74 }
75 }
76 ]
77 },
78 {
vincechiuf3b644d2021-07-20 12:44:59 +080079 "Name": "CameraServiceHighCapacity",
80 "Actions": [
81 {
82 "Name": "JoinCgroup",
83 "Params":
84 {
85 "Controller": "cpuset",
86 "Path": "camera-daemon-high-group"
87 }
88 }
89 ]
90 },
91 {
92 "Name": "CameraServiceMidCapacity",
93 "Actions": [
94 {
95 "Name": "JoinCgroup",
96 "Params":
97 {
98 "Controller": "cpuset",
99 "Path": "camera-daemon-mid-group"
100 }
101 }
102 ]
103 },
104 {
105 "Name": "CameraServiceMidHighCapacity",
106 "Actions": [
107 {
108 "Name": "JoinCgroup",
109 "Params":
110 {
111 "Controller": "cpuset",
112 "Path": "camera-daemon-mid-high-group"
113 }
114 }
115 ]
116 },
117 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800118 "Name": "HighEnergySaving",
119 "Actions": [
120 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800121 "Name": "WriteFile",
122 "Params":
123 {
guibinge9d93022023-08-01 20:53:18 +0000124 "FilePath": "/proc/vendor_sched/groups/bg/set_task_group",
125 "ProcFilePath": "/proc/vendor_sched/groups/bg/set_proc_group",
Robin Pengc2b5ca92021-02-23 20:00:28 +0800126 "Value": "<pid>",
Rick Yiue8d7fb72021-04-08 21:28:58 +0800127 "LogFailures": "false"
Robin Pengc2b5ca92021-02-23 20:00:28 +0800128 }
129 }
130 ]
131 },
132 {
133 "Name": "NormalPerformance",
134 "Actions": [
135 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800136 "Name": "WriteFile",
137 "Params":
138 {
guibinge9d93022023-08-01 20:53:18 +0000139 "FilePath": "/proc/vendor_sched/groups/sys/set_task_group",
140 "ProcFilePath": "/proc/vendor_sched/groups/sys/set_proc_group",
Robin Pengc2b5ca92021-02-23 20:00:28 +0800141 "Value": "<pid>",
Rick Yiue8d7fb72021-04-08 21:28:58 +0800142 "LogFailures": "false"
Robin Pengc2b5ca92021-02-23 20:00:28 +0800143 }
144 }
145 ]
146 },
147 {
148 "Name": "HighPerformance",
149 "Actions": [
150 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800151 "Name": "WriteFile",
152 "Params":
153 {
guibinge9d93022023-08-01 20:53:18 +0000154 "FilePath": "/proc/vendor_sched/groups/fg/set_task_group",
155 "ProcFilePath": "/proc/vendor_sched/groups/fg/set_proc_group",
Robin Pengc2b5ca92021-02-23 20:00:28 +0800156 "Value": "<pid>",
Rick Yiue8d7fb72021-04-08 21:28:58 +0800157 "LogFailures": "false"
Robin Pengc2b5ca92021-02-23 20:00:28 +0800158 }
159 }
160 ]
161 },
162 {
Rick Yiu4981fc32024-12-05 08:54:44 +0000163 "Name": "HighPerformanceWI",
164 "Actions": [
165 {
166 "Name": "WriteFile",
167 "Params":
168 {
169 "FilePath": "/proc/vendor_sched/groups/fg_wi/set_task_group",
170 "ProcFilePath": "/proc/vendor_sched/groups/fg_wi/set_proc_group",
171 "Value": "<pid>",
172 "LogFailures": "false"
173 }
174 }
175 ]
176 },
177 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800178 "Name": "RealtimePerformance",
179 "Actions": [
180 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800181 "Name": "WriteFile",
182 "Params":
183 {
guibinge9d93022023-08-01 20:53:18 +0000184 "FilePath": "/proc/vendor_sched/groups/ta/set_task_group",
185 "ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group",
Robin Pengc2b5ca92021-02-23 20:00:28 +0800186 "Value": "<pid>",
Rick Yiue8d7fb72021-04-08 21:28:58 +0800187 "LogFailures": "false"
Robin Pengc2b5ca92021-02-23 20:00:28 +0800188 }
189 }
190 ]
191 },
192 {
193 "Name": "NNApiHALPerformance",
194 "Actions": [
195 {
Robin Pengc2b5ca92021-02-23 20:00:28 +0800196 "Name": "WriteFile",
197 "Params":
198 {
guibinge9d93022023-08-01 20:53:18 +0000199 "FilePath": "/proc/vendor_sched/groups/nnapi/set_task_group",
200 "ProcFilePath": "/proc/vendor_sched/groups/nnapi/set_proc_group",
Taeju Park185653e2021-03-28 08:17:20 +0000201 "Value": "<pid>",
202 "LogFailures": "false"
203 }
204 }
205 ]
206 },
207 {
Rick Yiudaa6fa62021-05-21 22:16:06 +0800208 "Name": "ServicePerformance",
Taeju Park185653e2021-03-28 08:17:20 +0000209 "Actions": [
210 {
Taeju Park185653e2021-03-28 08:17:20 +0000211 "Name": "WriteFile",
212 "Params":
213 {
guibinge9d93022023-08-01 20:53:18 +0000214 "FilePath": "/proc/vendor_sched/groups/sys_bg/set_task_group",
215 "ProcFilePath": "/proc/vendor_sched/groups/sys_bg/set_proc_group",
Robin Pengc2b5ca92021-02-23 20:00:28 +0800216 "Value": "<pid>",
Rick Yiue8d7fb72021-04-08 21:28:58 +0800217 "LogFailures": "false"
Robin Pengc2b5ca92021-02-23 20:00:28 +0800218 }
219 }
220 ]
Wei Wang2fee52b2021-06-11 15:27:01 -0700221 },
222 {
223 "Name": "SFMainPolicy",
224 "Actions": [
225 {
226 "Name": "JoinCgroup",
227 "Params":
228 {
229 "Controller": "cpuset",
230 "Path": "top-app"
231 }
232 },
233 {
234 "Name": "WriteFile",
235 "Params":
236 {
guibinge9d93022023-08-01 20:53:18 +0000237 "FilePath": "/proc/vendor_sched/groups/sf/set_task_group",
238 "ProcFilePath": "/proc/vendor_sched/groups/sf/set_proc_group",
Wei Wang2fee52b2021-06-11 15:27:01 -0700239 "Value": "<pid>",
240 "LogFailures": "false"
241 }
242 }
243 ]
244 },
245 {
246 "Name": "SFRenderEnginePolicy",
247 "Actions": [
248 {
249 "Name": "JoinCgroup",
250 "Params":
251 {
252 "Controller": "cpuset",
253 "Path": "top-app"
254 }
255 },
256 {
257 "Name": "WriteFile",
258 "Params":
259 {
guibinge9d93022023-08-01 20:53:18 +0000260 "FilePath": "/proc/vendor_sched/groups/rt/set_task_group",
261 "ProcFilePath": "/proc/vendor_sched/groups/rt/set_proc_group",
Wei Wang2fee52b2021-06-11 15:27:01 -0700262 "Value": "<pid>",
263 "LogFailures": "false"
264 }
265 }
266 ]
Jimmy Shiub6534112021-07-13 15:01:55 +0800267 },
268 {
Rick Yiu4981fc32024-12-05 08:54:44 +0000269 "Name": "AdpfSet",
270 "Actions": [
271 {
272 "Name": "WriteFile",
273 "Params":
274 {
275 "FilePath": "/proc/vendor_sched/sched_qos/adpf_set",
276 "Value": "<pid>",
277 "LogFailures": "false"
278 }
279 }
280 ]
281 },
282 {
283 "Name": "AdpfClear",
284 "Actions": [
285 {
286 "Name": "WriteFile",
287 "Params":
288 {
289 "FilePath": "/proc/vendor_sched/sched_qos/adpf_clear",
290 "Value": "<pid>",
291 "LogFailures": "false"
292 }
293 }
294 ]
295 },
296 {
297 "Name": "BoostPrioSet",
298 "Actions": [
299 {
300 "Name": "WriteFile",
301 "Params":
302 {
303 "FilePath": "/proc/vendor_sched/sched_qos/boost_prio_set",
304 "Value": "<pid>",
305 "LogFailures": "false"
306 }
307 }
308 ]
309 },
310 {
311 "Name": "BoostPrioClear",
312 "Actions": [
313 {
314 "Name": "WriteFile",
315 "Params":
316 {
317 "FilePath": "/proc/vendor_sched/sched_qos/boost_prio_clear",
318 "Value": "<pid>",
319 "LogFailures": "false"
320 }
321 }
322 ]
323 },
324 {
325 "Name": "PreemptWakeupSet",
326 "Actions": [
327 {
328 "Name": "WriteFile",
329 "Params":
330 {
331 "FilePath": "/proc/vendor_sched/sched_qos/preempt_wakeup_set",
332 "Value": "<pid>",
333 "LogFailures": "false"
334 }
335 }
336 ]
337 },
338 {
339 "Name": "PreemptWakeupClear",
340 "Actions": [
341 {
342 "Name": "WriteFile",
343 "Params":
344 {
345 "FilePath": "/proc/vendor_sched/sched_qos/preempt_wakeup_clear",
346 "Value": "<pid>",
347 "LogFailures": "false"
348 }
349 }
350 ]
351 },
352 {
353 "Name": "PreferFitSet",
354 "Actions": [
355 {
356 "Name": "WriteFile",
357 "Params":
358 {
359 "FilePath": "/proc/vendor_sched/sched_qos/prefer_fit_set",
360 "Value": "<pid>",
361 "LogFailures": "false"
362 }
363 }
364 ]
365 },
366 {
367 "Name": "PreferFitClear",
368 "Actions": [
369 {
370 "Name": "WriteFile",
371 "Params":
372 {
373 "FilePath": "/proc/vendor_sched/sched_qos/prefer_fit_clear",
374 "Value": "<pid>",
375 "LogFailures": "false"
376 }
377 }
378 ]
379 },
380 {
381 "Name": "PreferIdleSet",
382 "Actions": [
383 {
384 "Name": "WriteFile",
385 "Params":
386 {
387 "FilePath": "/proc/vendor_sched/sched_qos/prefer_idle_set",
388 "Value": "<pid>",
389 "LogFailures": "false"
390 }
391 }
392 ]
393 },
394 {
395 "Name": "PreferIdleClear",
396 "Actions": [
397 {
398 "Name": "WriteFile",
399 "Params":
400 {
401 "FilePath": "/proc/vendor_sched/sched_qos/prefer_idle_clear",
402 "Value": "<pid>",
403 "LogFailures": "false"
404 }
405 }
406 ]
407 },
408 {
409 "Name": "AutoUclampMaxSet",
410 "Actions": [
411 {
412 "Name": "WriteFile",
413 "Params":
414 {
415 "FilePath": "/proc/vendor_sched/sched_qos/auto_uclamp_max_set",
416 "Value": "<pid>",
417 "LogFailures": "false"
418 }
419 }
420 ]
421 },
422 {
423 "Name": "AutoUclampMaxClear",
424 "Actions": [
425 {
426 "Name": "WriteFile",
427 "Params":
428 {
429 "FilePath": "/proc/vendor_sched/sched_qos/auto_uclamp_max_clear",
430 "Value": "<pid>",
431 "LogFailures": "false"
432 }
433 }
434 ]
435 },
436 {
437 "Name": "PreferHighCapSet",
438 "Actions": [
439 {
440 "Name": "WriteFile",
441 "Params":
442 {
443 "FilePath": "/proc/vendor_sched/sched_qos/prefer_high_cap_set",
444 "Value": "<pid>",
445 "LogFailures": "false"
446 }
447 }
448 ]
449 },
450 {
451 "Name": "PreferHighCapClear",
452 "Actions": [
453 {
454 "Name": "WriteFile",
455 "Params":
456 {
457 "FilePath": "/proc/vendor_sched/sched_qos/prefer_high_cap_clear",
458 "Value": "<pid>",
459 "LogFailures": "false"
460 }
461 }
462 ]
463 },
464 {
Jimmy Shiub6534112021-07-13 15:01:55 +0800465 "Name": "ResetUclampGrp",
466 "Actions": [
467 {
468 "Name": "WriteFile",
469 "Params":
470 {
chungkaiabf92a12022-03-23 09:41:51 +0000471 "FilePath": "/proc/vendor_sched/uclamp_fork_reset_set",
Jimmy Shiub6534112021-07-13 15:01:55 +0800472 "Value": "<pid>",
473 "LogFailures": "false"
474 }
475 }
476 ]
477 },
478 {
479 "Name": "NoResetUclampGrp",
480 "Actions": [
481 {
482 "Name": "WriteFile",
483 "Params":
484 {
chungkaiabf92a12022-03-23 09:41:51 +0000485 "FilePath": "/proc/vendor_sched/uclamp_fork_reset_clear",
Jimmy Shiub6534112021-07-13 15:01:55 +0800486 "Value": "<pid>",
487 "LogFailures": "false"
488 }
489 }
490 ]
Robin Pengc2b5ca92021-02-23 20:00:28 +0800491 }
Rick Yiu1b069622021-10-21 12:00:17 +0800492 ],
493
494 "AggregateProfiles": [
495 {
496 "Name": "Dex2OatBootComplete",
497 "Profiles": [ "Dex2oatPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
Rick Yiu219111e2021-12-07 16:03:40 +0800498 },
499 {
500 "Name": "OtaProfiles",
Rick Yiu4981fc32024-12-05 08:54:44 +0000501 "Profiles": [ "OtaPerformance", "ServiceCapacityLow", "LowIoPriority", "TimerSlackHigh" ]
502 },
503 {
504 "Name": "SCHED_QOS_SENSITIVE_EXTREME_SET",
505 "Profiles": [ "AdpfSet", "PreferIdleSet", "PreferFitSet", "BoostPrioSet", "PreemptWakeupSet" ]
506 },
507 {
508 "Name": "SCHED_QOS_SENSITIVE_EXTREME_CLEAR",
509 "Profiles": [ "AdpfClear", "PreferIdleClear", "PreferFitClear", "BoostPrioClear", "PreemptWakeupClear" ]
510 },
511 {
512 "Name": "SCHED_QOS_SENSITIVE_STANDARD_SET",
513 "Profiles": [ "AdpfSet", "PreferIdleSet", "PreferFitSet" ]
514 },
515 {
516 "Name": "SCHED_QOS_SENSITIVE_STANDARD_CLEAR",
517 "Profiles": [ "AdpfClear", "PreferIdleClear", "PreferFitClear" ]
518 },
519 {
520 "Name": "SCHED_QOS_POWER_EFFICIENCY_SET",
521 "Profiles": [ "AutoUclampMaxSet" ]
522 },
523 {
524 "Name": "SCHED_QOS_POWER_EFFICIENCY_CLEAR",
525 "Profiles": [ "AutoUclampMaxClear" ]
Jerry Changb6da7df2024-07-01 08:51:33 +0000526 },
527 {
528 "Name": "InputPolicy",
Rick Yiu4981fc32024-12-05 08:54:44 +0000529 "Profiles": [ "MaxPerformance", "SCHED_QOS_SENSITIVE_EXTREME_SET" ]
Rick Yiu1b069622021-10-21 12:00:17 +0800530 }
Robin Pengc2b5ca92021-02-23 20:00:28 +0800531 ]
532}