developtools_hiperf/etc/hiperf.cfg
zhangjian22 f054a14f05 hiperf支持user模式
Signed-off-by: 张建 <zhangjian22@huawei.com>
#I68M3K
2023-01-30 16:52:37 +08:00

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"
]
}]
}