@@ -288,95 +288,6 @@ void perf_tool__init(struct perf_tool *tool, bool ordered_events)
288
288
tool -> finished_init = process_event_op2_stub ;
289
289
}
290
290
291
- void perf_tool__fill_defaults (struct perf_tool * tool )
292
- {
293
- if (tool -> sample == NULL )
294
- tool -> sample = process_event_sample_stub ;
295
- if (tool -> mmap == NULL )
296
- tool -> mmap = process_event_stub ;
297
- if (tool -> mmap2 == NULL )
298
- tool -> mmap2 = process_event_stub ;
299
- if (tool -> comm == NULL )
300
- tool -> comm = process_event_stub ;
301
- if (tool -> namespaces == NULL )
302
- tool -> namespaces = process_event_stub ;
303
- if (tool -> cgroup == NULL )
304
- tool -> cgroup = process_event_stub ;
305
- if (tool -> fork == NULL )
306
- tool -> fork = process_event_stub ;
307
- if (tool -> exit == NULL )
308
- tool -> exit = process_event_stub ;
309
- if (tool -> lost == NULL )
310
- tool -> lost = perf_event__process_lost ;
311
- if (tool -> lost_samples == NULL )
312
- tool -> lost_samples = perf_event__process_lost_samples ;
313
- if (tool -> aux == NULL )
314
- tool -> aux = perf_event__process_aux ;
315
- if (tool -> itrace_start == NULL )
316
- tool -> itrace_start = perf_event__process_itrace_start ;
317
- if (tool -> context_switch == NULL )
318
- tool -> context_switch = perf_event__process_switch ;
319
- if (tool -> ksymbol == NULL )
320
- tool -> ksymbol = perf_event__process_ksymbol ;
321
- if (tool -> bpf == NULL )
322
- tool -> bpf = perf_event__process_bpf ;
323
- if (tool -> text_poke == NULL )
324
- tool -> text_poke = perf_event__process_text_poke ;
325
- if (tool -> aux_output_hw_id == NULL )
326
- tool -> aux_output_hw_id = perf_event__process_aux_output_hw_id ;
327
- if (tool -> read == NULL )
328
- tool -> read = process_event_sample_stub ;
329
- if (tool -> throttle == NULL )
330
- tool -> throttle = process_event_stub ;
331
- if (tool -> unthrottle == NULL )
332
- tool -> unthrottle = process_event_stub ;
333
- if (tool -> attr == NULL )
334
- tool -> attr = process_event_synth_attr_stub ;
335
- if (tool -> event_update == NULL )
336
- tool -> event_update = process_event_synth_event_update_stub ;
337
- if (tool -> tracing_data == NULL )
338
- tool -> tracing_data = process_event_synth_tracing_data_stub ;
339
- if (tool -> build_id == NULL )
340
- tool -> build_id = process_event_op2_stub ;
341
- if (tool -> finished_round == NULL ) {
342
- if (tool -> ordered_events )
343
- tool -> finished_round = perf_event__process_finished_round ;
344
- else
345
- tool -> finished_round = process_finished_round_stub ;
346
- }
347
- if (tool -> id_index == NULL )
348
- tool -> id_index = process_event_op2_stub ;
349
- if (tool -> auxtrace_info == NULL )
350
- tool -> auxtrace_info = process_event_op2_stub ;
351
- if (tool -> auxtrace == NULL )
352
- tool -> auxtrace = process_event_auxtrace_stub ;
353
- if (tool -> auxtrace_error == NULL )
354
- tool -> auxtrace_error = process_event_op2_stub ;
355
- if (tool -> thread_map == NULL )
356
- tool -> thread_map = process_event_thread_map_stub ;
357
- if (tool -> cpu_map == NULL )
358
- tool -> cpu_map = process_event_cpu_map_stub ;
359
- if (tool -> stat_config == NULL )
360
- tool -> stat_config = process_event_stat_config_stub ;
361
- if (tool -> stat == NULL )
362
- tool -> stat = process_stat_stub ;
363
- if (tool -> stat_round == NULL )
364
- tool -> stat_round = process_stat_round_stub ;
365
- if (tool -> time_conv == NULL )
366
- tool -> time_conv = process_event_time_conv_stub ;
367
- if (tool -> feature == NULL )
368
- tool -> feature = process_event_op2_stub ;
369
- if (tool -> compressed == NULL ) {
370
- #ifdef HAVE_ZSTD_SUPPORT
371
- tool -> compressed = perf_session__process_compressed_event ;
372
- #else
373
- tool -> compressed = perf_session__process_compressed_event_stub ;
374
- #endif
375
- }
376
- if (tool -> finished_init == NULL )
377
- tool -> finished_init = process_event_op2_stub ;
378
- }
379
-
380
291
bool perf_tool__compressed_is_stub (const struct perf_tool * tool )
381
292
{
382
293
return tool -> compressed == perf_session__process_compressed_event_stub ;
0 commit comments