| 1 |
|
| 2 |
#ifndef IRQBALANCE_UI_H |
| 3 |
#define IRQBALANCE_UI_Hcxx . . $ `ui/irqbalance-ui.h:3:9`! |
| 4 |
|
| 5 |
#include <stdio.h> |
| 6 |
#include <stdint.h> |
| 7 |
#include <glib.h> |
| 8 |
#include <glib-unix.h> |
| 9 |
|
| 10 |
#define SOCKET_PATHcxx . . $ `ui/irqbalance-ui.h:10:9`! "irqbalance" |
| 11 |
#define SOCKET_TMPFScxx . . $ `ui/irqbalance-ui.h:11:9`! "/run/irqbalance" |
| 12 |
|
| 13 |
#define STATScxx . . $ `ui/irqbalance-ui.h:13:9`! "stats" |
| 14 |
#define SET_SLEEPcxx . . $ `ui/irqbalance-ui.h:14:9`! "settings sleep " |
| 15 |
#define BAN_IRQScxx . . $ `ui/irqbalance-ui.h:15:9`! "settings ban irqs " |
| 16 |
#define SETUPcxx . . $ `ui/irqbalance-ui.h:16:9`! "setup" |
| 17 |
|
| 18 |
/* IRQ CLASSES (same as irqbalance uses) */ |
| 19 |
#define IRQ_NODEFcxx . . $ `ui/irqbalance-ui.h:19:9`! -1 |
| 20 |
#define IRQ_OTHERcxx . . $ `ui/irqbalance-ui.h:20:9`! 0 |
| 21 |
#define IRQ_LEGACYcxx . . $ `ui/irqbalance-ui.h:21:9`! 1 |
| 22 |
#define IRQ_SCSIcxx . . $ `ui/irqbalance-ui.h:22:9`! 2 |
| 23 |
#define IRQ_VIDEOcxx . . $ `ui/irqbalance-ui.h:23:9`! 3 |
| 24 |
#define IRQ_ETHcxx . . $ `ui/irqbalance-ui.h:24:9`! 4 |
| 25 |
#define IRQ_GBETHcxx . . $ `ui/irqbalance-ui.h:25:9`! 5 |
| 26 |
#define IRQ_10GBETHcxx . . $ `ui/irqbalance-ui.h:26:9`! 6 |
| 27 |
#define IRQ_VIRT_EVENTcxx . . $ `ui/irqbalance-ui.h:27:9`! 7 |
| 28 |
|
| 29 |
|
| 30 |
/* Typedefs */ |
| 31 |
|
| 32 |
typedef enum node_typecxx . . $ node_type# { |
| 33 |
OBJ_TYPE_CPUcxx . . $ OBJ_TYPE_CPU., |
| 34 |
OBJ_TYPE_CACHEcxx . . $ OBJ_TYPE_CACHE., |
| 35 |
OBJ_TYPE_PACKAGEcxx . . $ OBJ_TYPE_PACKAGE., |
| 36 |
OBJ_TYPE_NODEcxx . . $ OBJ_TYPE_NODE. |
| 37 |
} node_type_ecxx . . $ node_type_e#; |
| 38 |
|
| 39 |
typedef struct irqcxx . . $ irq# { |
| 40 |
int vectorcxx . . $ irq#vector.; |
| 41 |
uint64_tcxx . . $ uint64_t# loadcxx . . $ irq#load.; |
| 42 |
uint64_tcxx . . $ uint64_t# diffcxx . . $ irq#diff.; |
| 43 |
char is_bannedcxx . . $ irq#is_banned.; |
| 44 |
char is_changedcxx . . $ irq#is_changed.; |
| 45 |
GListcxx . . $ GList# *assigned_tocxx . . $ irq#assigned_to.; |
| 46 |
int classcxx . . $ irq#class.; |
| 47 |
} irq_tcxx . . $ irq_t#; |
| 48 |
|
| 49 |
typedef struct cpu_nodecxx . . $ cpu_node# { |
| 50 |
node_type_ecxx . . $ node_type_e# typecxx . . $ cpu_node#type.; |
| 51 |
int numbercxx . . $ cpu_node#number.; |
| 52 |
uint64_tcxx . . $ uint64_t# loadcxx . . $ cpu_node#load.; |
| 53 |
int is_powersavecxx . . $ cpu_node#is_powersave.; |
| 54 |
struct cpu_nodecxx . . $ cpu_node# *parentcxx . . $ cpu_node#parent.; |
| 55 |
GListcxx . . $ GList# *childrencxx . . $ cpu_node#children.; |
| 56 |
GListcxx . . $ GList# *irqscxx . . $ cpu_node#irqs.; |
| 57 |
GListcxx . . $ GList# *cpu_listcxx . . $ cpu_node#cpu_list.; |
| 58 |
char *cpu_maskcxx . . $ cpu_node#cpu_mask.; |
| 59 |
} cpu_node_tcxx . . $ cpu_node_t#; |
| 60 |
|
| 61 |
typedef struct cpu_bancxx . . $ cpu_ban# { |
| 62 |
int numbercxx . . $ cpu_ban#number.; |
| 63 |
char is_bannedcxx . . $ cpu_ban#is_banned.; |
| 64 |
char is_changedcxx . . $ cpu_ban#is_changed.; |
| 65 |
} cpu_ban_tcxx . . $ cpu_ban_t#; |
| 66 |
|
| 67 |
typedef struct setupcxx . . $ setup# { |
| 68 |
uint64_tcxx . . $ uint64_t# sleepcxx . . $ setup#sleep.; |
| 69 |
GListcxx . . $ GList# *banned_irqscxx . . $ setup#banned_irqs.; |
| 70 |
GListcxx . . $ GList# *banned_cpuscxx . . $ setup#banned_cpus.; |
| 71 |
} setup_tcxx . . $ setup_t#; |
| 72 |
|
| 73 |
/* Function prototypes */ |
| 74 |
|
| •75 |
struct msghdrcxx . . $ msghdr# * create_credentials_msgcxx . . $ create_credentials_msg(303f1cbb3f752c98).(void); |
| 76 |
int init_connectioncxx . . $ init_connection(b126dc7c1de90089).(void); |
| 77 |
void send_settingscxx . . $ send_settings(fda57c8427c60377).(char *data); |
| 78 |
char * get_datacxx . . $ get_data(7a9722d75b371431).(char *string); |
| 79 |
void parse_setupcxx . . $ parse_setup(fda57c8427c60377).(char *setup_data); |
| 80 |
GListcxx . . $ GList# * concat_child_listscxx . . $ concat_child_lists(eb92f3d8f858e077).(cpu_node_tcxx . . $ cpu_node_t# *node); |
| 81 |
void copy_cpu_list_to_irqcxx . . $ copy_cpu_list_to_irq(3ebfbd54ff48a71b).(irq_tcxx . . $ irq_t# *irq, void *data); |
| 82 |
void assign_cpu_listscxx . . $ assign_cpu_lists(f7b1609f1e161b92).(cpu_node_tcxx . . $ cpu_node_t# *node, void *data); |
| 83 |
void assign_cpu_maskcxx . . $ assign_cpu_mask(f7b1609f1e161b92).(cpu_node_tcxx . . $ cpu_node_t# *node, void *data); |
| 84 |
void parse_into_treecxx . . $ parse_into_tree(fda57c8427c60377).(char *data); |
| 85 |
gbooleancxx . . $ gboolean# rescan_treecxx . . $ rescan_tree(dedf1e9b1c614a07).(gpointercxx . . $ gpointer# data); |
| 86 |
|
| 87 |
|
| 88 |
#endif /* IRQBALANCE_UI_H */ |