~ubuntu-branches/ubuntu/vivid/irqbalance/vivid-proposed

« back to all changes in this revision

Viewing changes to irqbalance.h

  • Committer: Package Import Robot
  • Author(s): Anibal Monsalve Salazar
  • Date: 2012-11-12 14:30:07 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121112143007-431eb30o2vpm7v2v
* New upstream release 1.0.5
  - consolidate logging
  - Implement user policy script callout
  - Replace fscanf(%as) by getline
  - manpage: Improve the readability of the --banirq text
  - glib-local: ad call for g_list_remove
* Adjust irqbalance stop runlevel arguments
  Closes: #663725
* Ship upstream irqbalance.1
* Update debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
extern unsigned long long cycle_count;
70
70
extern unsigned long power_thresh;
71
71
extern char *banscript;
 
72
extern char *polscript;
72
73
 
73
74
/*
74
75
 * Numa node access routines
126
127
        }
127
128
}
128
129
 
 
130
/*
 
131
 * Logging functions
 
132
 */
 
133
#define TO_SYSLOG       (1 << 0)
 
134
#define TO_CONSOLE      (1 << 1)
 
135
#define TO_ALL          (TO_SYSLOG | TO_CONSOLE)
 
136
 
 
137
extern unsigned int log_mask;
 
138
#define log(mask, lvl, fmt, args...) do {\
 
139
        if (log_mask & mask & TO_SYSLOG)\
 
140
                syslog(lvl, fmt, ##args);\
 
141
        if (log_mask & mask & TO_CONSOLE)\
 
142
                printf(fmt, ##args);\
 
143
}while(0)
 
144
 
129
145
#endif
130
146