What kernel config option is required to build /proc/self/smaps

My x86/64 Openwrt install seems to be missing /proc/self/smaps ... does anyone know if there is a kernel config option I am missing that creates this?

EDIT: I found the option that creates this in Openwrt's nconfig: Global build settings>Kernel build options>Enable /proc page monitoring which sets KERNEL_PROC_PAGE_MONITOR

PROC_PAGE_MONITOR it seems:

config PROC_PAGE_MONITOR
        default y
        depends on PROC_FS && MMU
        bool "Enable /proc page monitoring" if EXPERT
        help
          Various /proc files exist to monitor process memory utilization:
          /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
          /proc/kpagecount, and /proc/kpageflags. Disabling these
          interfaces will reduce the size of the kernel by approximately 4kb.

I found it/edited my post nearly at the same time as you posted. You are right!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.