@@ -83,7 +83,7 @@ static void timerlat_free_histogram_tool(struct osnoise_tool *tool)
8383 * timerlat_alloc_histogram - alloc runtime data
8484 */
8585static struct timerlat_hist_data
86- * timerlat_alloc_histogram (int nr_cpus , int entries , int bucket_size )
86+ * timerlat_alloc_histogram (int entries , int bucket_size )
8787{
8888 struct timerlat_hist_data * data ;
8989 int cpu ;
@@ -211,7 +211,7 @@ static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
211211 /* Pull histogram */
212212 for (i = 0 ; i < data -> entries ; i ++ ) {
213213 err = timerlat_bpf_get_hist_value (i , value_irq , value_thread ,
214- value_user , data -> nr_cpus );
214+ value_user );
215215 if (err )
216216 return err ;
217217 for (j = 0 ; j < data -> nr_cpus ; j ++ ) {
@@ -223,8 +223,7 @@ static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
223223
224224 /* Pull summary */
225225 err = timerlat_bpf_get_summary_value (SUMMARY_COUNT ,
226- value_irq , value_thread , value_user ,
227- data -> nr_cpus );
226+ value_irq , value_thread , value_user );
228227 if (err )
229228 return err ;
230229 for (i = 0 ; i < data -> nr_cpus ; i ++ ) {
@@ -234,8 +233,7 @@ static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
234233 }
235234
236235 err = timerlat_bpf_get_summary_value (SUMMARY_MIN ,
237- value_irq , value_thread , value_user ,
238- data -> nr_cpus );
236+ value_irq , value_thread , value_user );
239237 if (err )
240238 return err ;
241239 for (i = 0 ; i < data -> nr_cpus ; i ++ ) {
@@ -245,8 +243,7 @@ static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
245243 }
246244
247245 err = timerlat_bpf_get_summary_value (SUMMARY_MAX ,
248- value_irq , value_thread , value_user ,
249- data -> nr_cpus );
246+ value_irq , value_thread , value_user );
250247 if (err )
251248 return err ;
252249 for (i = 0 ; i < data -> nr_cpus ; i ++ ) {
@@ -256,8 +253,7 @@ static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
256253 }
257254
258255 err = timerlat_bpf_get_summary_value (SUMMARY_SUM ,
259- value_irq , value_thread , value_user ,
260- data -> nr_cpus );
256+ value_irq , value_thread , value_user );
261257 if (err )
262258 return err ;
263259 for (i = 0 ; i < data -> nr_cpus ; i ++ ) {
@@ -267,8 +263,7 @@ static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
267263 }
268264
269265 err = timerlat_bpf_get_summary_value (SUMMARY_OVERFLOW ,
270- value_irq , value_thread , value_user ,
271- data -> nr_cpus );
266+ value_irq , value_thread , value_user );
272267 if (err )
273268 return err ;
274269 for (i = 0 ; i < data -> nr_cpus ; i ++ ) {
@@ -1045,7 +1040,7 @@ static struct osnoise_tool
10451040 if (!tool )
10461041 return NULL ;
10471042
1048- tool -> data = timerlat_alloc_histogram (nr_cpus , params -> hist .entries ,
1043+ tool -> data = timerlat_alloc_histogram (params -> hist .entries ,
10491044 params -> hist .bucket_size );
10501045 if (!tool -> data )
10511046 goto out_err ;
0 commit comments