22#pragma once
33
44#include "common.h"
5- #include "trace.h"
65
76enum osnoise_mode {
87 MODE_OSNOISE = 0 ,
@@ -18,53 +17,6 @@ struct osnoise_params {
1817 enum osnoise_mode mode ;
1918};
2019
21- /*
22- * osnoise_context - read, store, write, restore osnoise configs.
23- */
24- struct osnoise_context {
25- int flags ;
26- int ref ;
27-
28- char * curr_cpus ;
29- char * orig_cpus ;
30-
31- /* 0 as init value */
32- unsigned long long orig_runtime_us ;
33- unsigned long long runtime_us ;
34-
35- /* 0 as init value */
36- unsigned long long orig_period_us ;
37- unsigned long long period_us ;
38-
39- /* 0 as init value */
40- long long orig_timerlat_period_us ;
41- long long timerlat_period_us ;
42-
43- /* 0 as init value */
44- long long orig_tracing_thresh ;
45- long long tracing_thresh ;
46-
47- /* -1 as init value because 0 is disabled */
48- long long orig_stop_us ;
49- long long stop_us ;
50-
51- /* -1 as init value because 0 is disabled */
52- long long orig_stop_total_us ;
53- long long stop_total_us ;
54-
55- /* -1 as init value because 0 is disabled */
56- long long orig_print_stack ;
57- long long print_stack ;
58-
59- /* -1 as init value because 0 is off */
60- int orig_opt_irq_disable ;
61- int opt_irq_disable ;
62-
63- /* -1 as init value because 0 is off */
64- int orig_opt_workload ;
65- int opt_workload ;
66- };
67-
6820/*
6921 * *_INIT_VALs are also invalid values, they are used to
7022 * communicate errors.
@@ -76,9 +28,6 @@ struct osnoise_context *osnoise_context_alloc(void);
7628int osnoise_get_context (struct osnoise_context * context );
7729void osnoise_put_context (struct osnoise_context * context );
7830
79- int osnoise_set_cpus (struct osnoise_context * context , char * cpus );
80- void osnoise_restore_cpus (struct osnoise_context * context );
81-
8231int osnoise_set_runtime_period (struct osnoise_context * context ,
8332 unsigned long long runtime ,
8433 unsigned long long period );
@@ -105,19 +54,6 @@ int osnoise_set_print_stack(struct osnoise_context *context,
10554 long long print_stack );
10655
10756int osnoise_set_irq_disable (struct osnoise_context * context , bool onoff );
108- int osnoise_set_workload (struct osnoise_context * context , bool onoff );
109-
110- /*
111- * osnoise_tool - osnoise based tool definition.
112- */
113- struct osnoise_tool {
114- struct trace_instance trace ;
115- struct osnoise_context * context ;
116- void * data ;
117- void * params ;
118- time_t start_time ;
119- };
120-
12157void osnoise_destroy_tool (struct osnoise_tool * top );
12258struct osnoise_tool * osnoise_init_tool (char * tool_name );
12359struct osnoise_tool * osnoise_init_trace_tool (char * tracer );
0 commit comments