summaryrefslogtreecommitdiffstats
blob: f762a5ced266469c13e3abae531ba1c0a16f9467 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# eng default for ro.llk.enable and ro.khungtask.enable
on property:ro.debuggable=*
    setprop llk.enable ${ro.llk.enable:-0}
    setprop khungtask.enable ${ro.khungtask.enable:-0}

on property:ro.debuggable=1
    setprop llk.enable ${ro.llk.enable:-1}
    setprop khungtask.enable ${ro.khungtask.enable:-1}

on property:ro.llk.enable=eng
    setprop llk.enable ${ro.debuggable:-0}

on property:ro.khungtask.enable=eng
    setprop khungtask.enable ${ro.debuggable:-0}

on property:llk.enable=1
    setprop llk.enable true

on property:llk.enable=0
    setprop llk.enable false

on property:khungtask.enable=1
    setprop khungtask.enable true

on property:khungtask.enable=0
    setprop khungtask.enable false

# Configure [khungtaskd]
on property:khungtask.enable=true
    write /proc/sys/kernel/hung_task_timeout_secs ${ro.khungtask.timeout:-720}
    write /proc/sys/kernel/hung_task_warnings 65535
    write /proc/sys/kernel/hung_task_check_count 65535
    write /proc/sys/kernel/hung_task_panic 1

on property:khungtask.enable=false
    write /proc/sys/kernel/hung_task_panic 0

on property:llk.enable=true
    start llkd

service llkd /system/bin/llkd
    class late_start
    disabled
    user llkd
    group llkd readproc
    capabilities KILL IPC_LOCK
    file /proc/sysrq-trigger w
    writepid /dev/cpuset/system-background/tasks