1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 28b40f521SJohn Kacur #ifndef __PERF_SVGHELPER_H 38b40f521SJohn Kacur #define __PERF_SVGHELPER_H 4f48d55ceSArjan van de Ven 5d944c4eeSBorislav Petkov #include <linux/types.h> 6f48d55ceSArjan van de Ven 7*0ac1dd5bSKyle Meyer struct perf_env; 8*0ac1dd5bSKyle Meyer 93938bad4SArnaldo Carvalho de Melo void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end); 103938bad4SArnaldo Carvalho de Melo void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges); 113938bad4SArnaldo Carvalho de Melo void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges); 123938bad4SArnaldo Carvalho de Melo void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges); 133938bad4SArnaldo Carvalho de Melo void svg_box(int Yslot, u64 start, u64 end, const char *type); 143938bad4SArnaldo Carvalho de Melo void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace); 153938bad4SArnaldo Carvalho de Melo void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace); 163938bad4SArnaldo Carvalho de Melo void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace); 173938bad4SArnaldo Carvalho de Melo void svg_cpu_box(int cpu, u64 max_frequency, u64 turbo_frequency); 18f48d55ceSArjan van de Ven 19f48d55ceSArjan van de Ven 203938bad4SArnaldo Carvalho de Melo void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtrace); 213938bad4SArnaldo Carvalho de Melo void svg_cstate(int cpu, u64 start, u64 end, int type); 223938bad4SArnaldo Carvalho de Melo void svg_pstate(int cpu, u64 start, u64 end, u64 freq); 23f48d55ceSArjan van de Ven 24f48d55ceSArjan van de Ven 253938bad4SArnaldo Carvalho de Melo void svg_time_grid(double min_thickness); 263938bad4SArnaldo Carvalho de Melo void svg_io_legenda(void); 273938bad4SArnaldo Carvalho de Melo void svg_legenda(void); 283938bad4SArnaldo Carvalho de Melo void svg_wakeline(u64 start, int row1, int row2, const char *backtrace); 293938bad4SArnaldo Carvalho de Melo void svg_partial_wakeline(u64 start, int row1, char *desc1, int row2, char *desc2, const char *backtrace); 303938bad4SArnaldo Carvalho de Melo void svg_interrupt(u64 start, int row, const char *backtrace); 313938bad4SArnaldo Carvalho de Melo void svg_text(int Yslot, u64 start, const char *text); 323938bad4SArnaldo Carvalho de Melo void svg_close(void); 33*0ac1dd5bSKyle Meyer int svg_build_topology_map(struct perf_env *env); 34f48d55ceSArjan van de Ven 355094b655SArjan van de Ven extern int svg_page_width; 36e57a2dffSStanislav Fomichev extern u64 svg_highlight; 37e57a2dffSStanislav Fomichev extern const char *svg_highlight_name; 385094b655SArjan van de Ven 398b40f521SJohn Kacur #endif /* __PERF_SVGHELPER_H */ 40