mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 01:30:28 +00:00
18 lines
742 B
INI
18 lines
742 B
INI
|
{
|
||
|
"jobs": [{
|
||
|
"name": "param:security.perf_harden=0",
|
||
|
"condition": "security.perf_harden=0",
|
||
|
"cmds": [
|
||
|
"write /proc/sys/kernel/perf_event_max_sample_rate ${hiviewdfx.hiperf.perf_event_max_sample_rate}",
|
||
|
"write /proc/sys/kernel/perf_cpu_time_max_percent ${hiviewdfx.hiperf.perf_cpu_time_max_percent}",
|
||
|
"write /proc/sys/kernel/perf_event_mlock_kb ${hiviewdfx.hiperf.perf_event_mlock_kb}"
|
||
|
]
|
||
|
}, {
|
||
|
"name": "post-init",
|
||
|
"cmds": [
|
||
|
"setparam hiviewdfx.hiperf.perf_event_max_sample_rate 100000",
|
||
|
"setparam hiviewdfx.hiperf.perf_cpu_time_max_percent 25",
|
||
|
"setparam hiviewdfx.hiperf.perf_event_mlock_kb 516"
|
||
|
]
|
||
|
}]
|
||
|
}
|