Skip to content

Commit de6fdc0

Browse files
committed
tracing: PM: Remove unused clock events
The events clock_enable, clock_disable, and clock_set_rate were added back in 2010. In 2011 they were used by the arm architecture but removed in 2013. These events add around 7K of memory which was wasted for the last 12 years. Remove them. Link: https://lore.kernel.org/all/[email protected]/ Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Kajetan Puchalski <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: 74704ac ("tracing, perf: Add more power related events") Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 40ee2af commit de6fdc0

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

include/trace/events/power.h

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -337,53 +337,6 @@ DEFINE_EVENT(wakeup_source, wakeup_source_deactivate,
337337
TP_ARGS(name, state)
338338
);
339339

340-
/*
341-
* The clock events are used for clock enable/disable and for
342-
* clock rate change
343-
*/
344-
DECLARE_EVENT_CLASS(clock,
345-
346-
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
347-
348-
TP_ARGS(name, state, cpu_id),
349-
350-
TP_STRUCT__entry(
351-
__string( name, name )
352-
__field( u64, state )
353-
__field( u64, cpu_id )
354-
),
355-
356-
TP_fast_assign(
357-
__assign_str(name);
358-
__entry->state = state;
359-
__entry->cpu_id = cpu_id;
360-
),
361-
362-
TP_printk("%s state=%lu cpu_id=%lu", __get_str(name),
363-
(unsigned long)__entry->state, (unsigned long)__entry->cpu_id)
364-
);
365-
366-
DEFINE_EVENT(clock, clock_enable,
367-
368-
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
369-
370-
TP_ARGS(name, state, cpu_id)
371-
);
372-
373-
DEFINE_EVENT(clock, clock_disable,
374-
375-
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
376-
377-
TP_ARGS(name, state, cpu_id)
378-
);
379-
380-
DEFINE_EVENT(clock, clock_set_rate,
381-
382-
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
383-
384-
TP_ARGS(name, state, cpu_id)
385-
);
386-
387340
/*
388341
* The power domain events are used for power domains transitions
389342
*/

0 commit comments

Comments
 (0)