This parameter gives the number of jiffies per second on the machine
that created the file. It is now saved in file's header.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
* Timestamp in seconds since the epoch.
*/
unsigned long long sa_ust_time;
+ /*
+ * Number of jiffies per second.
+ */
+ unsigned long sa_hz __attribute__ ((aligned (8)));
/*
* Number of CPU items (1 .. CPU_NR + 1) for the last sample in file.
*/
- unsigned int sa_last_cpu_nr;
+ unsigned int sa_last_cpu_nr __attribute__ ((aligned (8)));
/*
* Number of activities saved in file.
*/
file_hdr.sa_month = rectime.tm_mon;
file_hdr.sa_year = rectime.tm_year;
file_hdr.sa_sizeof_long = sizeof(long);
+ file_hdr.sa_hz = HZ;
for (i = 0; i < 3; i++) {
file_hdr.act_types_nr[i] = act_types_nr[i];
}
printf(_("Size of a long int: %d\n"), file_hdr->sa_sizeof_long);
+ printf("HZ = %lu\n", file_hdr->sa_hz);
/* Number of activities (number of volatile activities) in file */
printf("sa_act_nr (sa_vol_act_nr): %u (%u)\n",