/* No such process */
return 1;
- sprintf(format, "%%*d (%%%ds %%*s %%*d %%*d %%*d %%*d %%*d %%*u %%lu %%lu"
- " %%lu %%lu %%lu %%lu %%lu %%lu %%*d %%*d %%u %%*u %%*d %%lu %%lu"
+ sprintf(format, "%%*d (%%%ds %%*s %%*d %%*d %%*d %%*d %%*d %%*u %%llu %%llu"
+ " %%llu %%llu %%llu %%llu %%lld %%lld %%*d %%*d %%u %%*u %%*d %%llu %%llu"
" %%*u %%*u %%*u %%*u %%*u %%*u %%*u %%*u %%*u %%*u %%*u %%*u %%*u"
- " %%*u %%u %%u %%u %%llu %%lu %%lu\\n", MAX_COMM_LEN);
+ " %%*u %%u %%u %%u %%llu %%llu %%lld\\n", MAX_COMM_LEN);
fscanf(fp, format, comm,
&pst->minflt, &pst->cminflt, &pst->majflt, &pst->cmajflt,
}
if (DISPLAY_MEM(actflag)) {
- printf(" %9.2f %9.2f %7lu %6lu %6.2f",
+ printf(" %9.2f %9.2f %7llu %6llu %6.2f",
S_VALUE(pstp->minflt, pstc->minflt, itv),
S_VALUE(pstp->majflt, pstc->majflt, itv),
pstc->vsz,
if (DISPLAY_MEM(actflag)) {
- printf(" %9lu %9lu",
+ printf(" %9llu %9llu",
(pstc->minflt + pstc->cminflt) - (pstp->minflt + pstp->cminflt),
(pstc->majflt + pstc->cmajflt) - (pstp->majflt + pstp->cmajflt));
}
: 0.0);
}
else {
- printf("%7lu %6lu %6.2f",
+ printf("%7llu %6llu %6.2f",
pstc->vsz,
pstc->rss,
tlmkb ? SP_VALUE(0, pstc->rss, tlmkb) : 0.0);
(pstp->majflt + pstp->cmajflt)) / pstc->rc_asum_count);
}
else {
- printf(" %9lu %9lu",
+ printf(" %9llu %9llu",
(pstc->minflt + pstc->cminflt) - (pstp->minflt + pstp->cminflt),
(pstc->majflt + pstc->cmajflt) - (pstp->majflt + pstp->cmajflt));
}
"?")))))
struct pid_stats {
- unsigned long long read_bytes __attribute__ ((aligned (8)));
+ unsigned long long read_bytes __attribute__ ((aligned (16)));
unsigned long long write_bytes __attribute__ ((packed));
unsigned long long cancelled_write_bytes __attribute__ ((packed));
unsigned long long total_vsz __attribute__ ((packed));
unsigned long long total_threads __attribute__ ((packed));
unsigned long long total_fd_nr __attribute__ ((packed));
unsigned long long blkio_swapin_delays __attribute__ ((packed));
- unsigned long minflt __attribute__ ((packed));
- unsigned long cminflt __attribute__ ((packed));
- unsigned long majflt __attribute__ ((packed));
- unsigned long cmajflt __attribute__ ((packed));
- unsigned long utime __attribute__ ((packed));
- unsigned long cutime __attribute__ ((packed));
- unsigned long stime __attribute__ ((packed));
- unsigned long cstime __attribute__ ((packed));
- unsigned long gtime __attribute__ ((packed));
- unsigned long cgtime __attribute__ ((packed));
- unsigned long vsz __attribute__ ((packed));
- unsigned long rss __attribute__ ((packed));
+ unsigned long long minflt __attribute__ ((packed));
+ unsigned long long cminflt __attribute__ ((packed));
+ unsigned long long majflt __attribute__ ((packed));
+ unsigned long long cmajflt __attribute__ ((packed));
+ unsigned long long utime __attribute__ ((packed));
+ long long cutime __attribute__ ((packed));
+ unsigned long long stime __attribute__ ((packed));
+ long long cstime __attribute__ ((packed));
+ unsigned long long gtime __attribute__ ((packed));
+ long long cgtime __attribute__ ((packed));
+ unsigned long long vsz __attribute__ ((packed));
+ unsigned long long rss __attribute__ ((packed));
unsigned long nvcsw __attribute__ ((packed));
unsigned long nivcsw __attribute__ ((packed));
unsigned long stack_size __attribute__ ((packed));