Lines Matching refs:params
25 timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params) in timerlat_apply_config() argument
29 if (!params->sleep_time) in timerlat_apply_config()
30 params->sleep_time = 1; in timerlat_apply_config()
32 retval = osnoise_set_cpus(tool->context, params->cpus ? params->cpus : "all"); in timerlat_apply_config()
38 if (!params->cpus) { in timerlat_apply_config()
40 CPU_SET(i, ¶ms->monitored_cpus); in timerlat_apply_config()
43 if (params->mode != TRACING_MODE_BPF) { in timerlat_apply_config()
48 retval = osnoise_set_stop_us(tool->context, params->stop_us); in timerlat_apply_config()
54 retval = osnoise_set_stop_total_us(tool->context, params->stop_total_us); in timerlat_apply_config()
63 params->timerlat_period_us ? in timerlat_apply_config()
64 params->timerlat_period_us : in timerlat_apply_config()
72 retval = osnoise_set_print_stack(tool->context, params->print_stack); in timerlat_apply_config()
78 if (params->hk_cpus) { in timerlat_apply_config()
79 retval = sched_setaffinity(getpid(), sizeof(params->hk_cpu_set), in timerlat_apply_config()
80 ¶ms->hk_cpu_set); in timerlat_apply_config()
85 } else if (params->cpus) { in timerlat_apply_config()
93 auto_house_keeping(¶ms->monitored_cpus); in timerlat_apply_config()
100 if (!params->kernel_workload && !params->user_data) { in timerlat_apply_config()
104 params->user_workload = 1; in timerlat_apply_config()
105 params->user_data = 1; in timerlat_apply_config()
108 params->kernel_workload = 1; in timerlat_apply_config()
117 retval = osnoise_set_workload(tool->context, params->kernel_workload); in timerlat_apply_config()