Where is proc id pagemap in OpenWrt

Hi

We are trying to run openWRT on an x86_64 based processor.

In the make kernel_menuconfig
we have enabled the PROC_PAGE_MONITOR configuration
We have also enabled DEV_PAGEMAP_OPS

However when OpenWRT boots up there are no entries for /proc/self/pagemap. Nor are there any entries for /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap, /proc/kpagecount, and /proc/kpageflags. It seems that the pagemap interface is not enabled.

Can anyone guide me how to enable the pagemap interface in OpenWRT.

depends on: ( CONFIG_PROC_FS && CONFIG_MMU ) && ( CONFIG_EXPERT )

2 Likes

Thanks @anon50098793.

But all three are set to [y]. But still the pagemap entries were not showing in the proc filesystem.

However checked the dependencies and selects using

make kernel_menuconfig

Had to set the following to get it to work

Selected by [y]:

  • HWPOISON_INJECT [=y] && MEMORY_FAILURE [=y] && DEBUG_KERNEL [=y] && PROC_FS [=y]

Was now able to see the pagemap in the proc filesystem

1 Like

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