diff options
author | Mark Brown <broonie@kernel.org> | 2018-08-01 13:43:52 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-01 13:43:52 +0300 |
commit | 1a3ea2d9837dc94897e4a5b2145bae12b0608341 (patch) | |
tree | 1bb67c9fab7777cebee29b33872c15bf45c10688 /include/trace/events/clk.h | |
parent | a0b5031582c38f6e2685f7ab9bb0a4168e2a5d1b (diff) | |
parent | 9fba738a53dda20e748d6ee240b6c017c8146b4b (diff) | |
download | linux-1a3ea2d9837dc94897e4a5b2145bae12b0608341.tar.xz |
Merge tag 'clk-core-duty-cycle-for-mark' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux into asoc-4.19
Duty cycle support for the clk api and drivers.
Diffstat (limited to 'include/trace/events/clk.h')
-rw-r--r-- | include/trace/events/clk.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/trace/events/clk.h b/include/trace/events/clk.h index 2cd449328aee..9004ffff7f32 100644 --- a/include/trace/events/clk.h +++ b/include/trace/events/clk.h @@ -192,6 +192,42 @@ DEFINE_EVENT(clk_phase, clk_set_phase_complete, TP_ARGS(core, phase) ); +DECLARE_EVENT_CLASS(clk_duty_cycle, + + TP_PROTO(struct clk_core *core, struct clk_duty *duty), + + TP_ARGS(core, duty), + + TP_STRUCT__entry( + __string( name, core->name ) + __field( unsigned int, num ) + __field( unsigned int, den ) + ), + + TP_fast_assign( + __assign_str(name, core->name); + __entry->num = duty->num; + __entry->den = duty->den; + ), + + TP_printk("%s %u/%u", __get_str(name), (unsigned int)__entry->num, + (unsigned int)__entry->den) +); + +DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle, + + TP_PROTO(struct clk_core *core, struct clk_duty *duty), + + TP_ARGS(core, duty) +); + +DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle_complete, + + TP_PROTO(struct clk_core *core, struct clk_duty *duty), + + TP_ARGS(core, duty) +); + #endif /* _TRACE_CLK_H */ /* This part must be outside protection */ |