* (used in next_slice() function).
* @parm Pointer on parameters depending on output format
* (eg.: number of tabulations to print).
- * @cpu_nr Number of processors.
* @rectime Structure where timestamp (expressed in local time
* or in UTC depending on whether options -T/-t have
* been used or not) has been saved for current record.
***************************************************************************
*/
int generic_write_stats(int curr, int use_tm_start, int use_tm_end, int reset,
- long *cnt, void *parm, __nr_t cpu_nr, struct tm *rectime,
+ long *cnt, void *parm, struct tm *rectime,
struct tm *loctime, int reset_cd, unsigned int act_id)
{
int i;
* @curr Index in array for current sample statistics.
* @act_id Activity to display, or ~0 for all.
* @file_actlst List of (known or unknown) activities in file.
- * @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time or in UTC
* depending on whether options -T/-t have been used or not) can
* be saved for current record.
*/
void rw_curr_act_stats(int ifd, off_t fpos, int *curr, long *cnt, int *eosaf,
unsigned int act_id, int *reset, struct file_activity *file_actlst,
- __nr_t cpu_nr, struct tm *rectime, struct tm *loctime,
- char *file, struct file_magic *file_magic)
+ struct tm *rectime, struct tm *loctime, char *file,
+ struct file_magic *file_magic)
{
int rtype;
int next, reset_cd;
if (!*eosaf && (rtype != R_RESTART) && (rtype != R_COMMENT)) {
next = generic_write_stats(*curr, tm_start.use, tm_end.use, *reset, cnt,
- NULL, cpu_nr, rectime, loctime, reset_cd, act_id);
+ NULL, rectime, loctime, reset_cd, act_id);
reset_cd = 0;
if (next) {
* @curr Index in array for current sample statistics.
* @p Current activity position.
* @file_actlst List of (known or unknown) activities in file.
- * @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time or in UTC
* depending on whether options -T/-t have been used or not) can
* be saved for current record.
*/
void display_curr_act_graphs(int ifd, off_t fpos, int *curr, long *cnt, int *eosaf,
int p, int *reset, struct file_activity *file_actlst,
- __nr_t cpu_nr, struct tm *rectime, struct tm *loctime,
+ struct tm *rectime, struct tm *loctime,
char *file, struct file_magic *file_magic,
__nr_t save_act_nr[], int *g_nr)
{
if (!*eosaf && (rtype != R_COMMENT) && (rtype != R_RESTART)) {
next = generic_write_stats(*curr, tm_start.use, tm_end.use, *reset, cnt,
- &parm, cpu_nr, rectime, loctime, reset_cd, act[p]->id);
+ &parm, rectime, loctime, reset_cd, act[p]->id);
reset_cd = 0;
if (next) {
/*
/* next is set to 1 when we were close enough to desired interval */
next = generic_write_stats(curr, tm_start.use, tm_end.use, reset,
- &cnt, &tab, cpu_nr, rectime, loctime,
+ &cnt, &tab, rectime, loctime,
FALSE, ALL_ACTIVITIES);
if (next) {
* IN:
* @ifd File descriptor of input file.
* @file_actlst List of (known or unknown) activities in file.
- * @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time or in UTC
* depending on whether options -T/-t have been used or not) can
* be saved for current record.
* @file_magic file_magic structure filled with file magic header data.
***************************************************************************
*/
-void logic2_display_loop(int ifd, struct file_activity *file_actlst, __nr_t cpu_nr,
+void logic2_display_loop(int ifd, struct file_activity *file_actlst,
struct tm *rectime, struct tm *loctime, char *file,
struct file_magic *file_magic)
{
*/
rw_curr_act_stats(ifd, fpos, &curr, &cnt, &eosaf,
ALL_ACTIVITIES, &reset, file_actlst,
- cpu_nr, rectime, loctime, file, file_magic);
+ rectime, loctime, file, file_magic);
}
else {
/* For each requested activity... */
if (!HAS_MULTIPLE_OUTPUTS(act[p]->options)) {
rw_curr_act_stats(ifd, fpos, &curr, &cnt, &eosaf,
act[p]->id, &reset, file_actlst,
- cpu_nr, rectime, loctime, file,
- file_magic);
+ rectime, loctime, file, file_magic);
}
else {
unsigned int optf, msk;
rw_curr_act_stats(ifd, fpos, &curr, &cnt, &eosaf,
act[p]->id, &reset, file_actlst,
- cpu_nr, rectime, loctime, file,
+ rectime, loctime, file,
file_magic);
act[p]->opt_flags = optf;
}
if (!HAS_MULTIPLE_OUTPUTS(act[p]->options)) {
display_curr_act_graphs(ifd, fpos, &curr, &cnt, &eosaf,
p, &reset, file_actlst,
- cpu_nr, rectime, loctime, file,
+ rectime, loctime, file,
file_magic, save_act_nr, &g_nr);
}
else {
act[p]->opt_flags &= (0xffffff00 + msk);
display_curr_act_graphs(ifd, fpos, &curr, &cnt, &eosaf,
p, &reset, file_actlst,
- cpu_nr, rectime, loctime, file,
+ rectime, loctime, file,
file_magic, save_act_nr, &g_nr);
act[p]->opt_flags = optf;
}
&rectime, &loctime, dfile, &file_magic);
}
else if (DISPLAY_GROUPED_STATS(fmt[f_position]->options)) {
- logic2_display_loop(ifd, file_actlst, cpu_nr,
+ logic2_display_loop(ifd, file_actlst,
&rectime, &loctime, dfile, &file_magic);
}
else {