/proc/[pid]/pagemaps and /proc/[pid]/maps | linux

前端 未结 3 1988
闹比i
闹比i 2020-12-03 02:06

I\'m trying to get my head around the two files mentioned in the title. I\'ve looked up what the bits are; however, I\'m failing to understand how to extract useful info fro

3条回答
  •  天命终不由人
    2020-12-03 02:26

    Oooh K, the index was correct but comparing off64_t o (8bytes) with long index was interpreting o wrong hence why I was getting that error. Ha! this was a stupid mistake. So adding the appropriate header took care of that.

    Missing header :-/ sigh fixes the issue of comparing off64_t with a unsigned long.

提交回复
热议问题