← Commit list

a1e4a0ef6

Glenn L McGrath
Glenn L McGrath
2004-01-21
FAILED Duration: 68s

Subject

Patch from Atsushi Nemoto, recent MIPS kernel headers does not provide PAGE_SHIFT for userland (because now mips-linux kernel supports PAGESIZE other than 4K).

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/procps.c+4 -0
@@ -115,7 +115,11 @@ extern procps_status_t * procps_scan(int save_user_arg0
else
curstatus.state[2] = ' ';
+#ifdef PAGE_SHIFT
curstatus.rss <<= (PAGE_SHIFT - 10); /* 2**10 = 1kb */
+#else
+ curstatus.rss *= (getpagesize() >> 10); /* 2**10 = 1kb */
+#endif
if(save_user_arg0) {
sprintf(status, "/proc/%d/cmdline", pid);