- The process(EXE).begin probe handlers are now always triggered for
already-running target processes.
+- The proc_mem_rss() tapset function now includes the resident shared
+ memory pages as expected. The old behavior can be restored by the
+ --compatible=4.2 option on the command line.
+
* What's new in version 4.2, 2019-11-18
- Initial support for multi-dimensional supports has been added to
return @const("MM_ANONPAGES")
}
+%(systemtap_v > "4.2" %?
+@__private30 function _MM_SHMEMPAGES:long()
+{
+ return @const("MM_SHMEMPAGES")
+}
+%)
+
@__private30 function _stp_get_mm_counter:long(mm_ptr:long, member:long)
{
mm = & @mm(mm_ptr)
mm = @task(task)->mm
if (mm != 0)
return (_stp_get_mm_counter(mm, _MM_FILEPAGES())
- + _stp_get_mm_counter(mm, _MM_ANONPAGES()))
+ + _stp_get_mm_counter(mm, _MM_ANONPAGES())
+%(systemtap_v > "4.2" %?
+ + _stp_get_mm_counter(mm, _MM_SHMEMPAGES())
+%)
+ )
}
return 0
}
mm = @task(task)->mm
if (mm != 0)
return (_stp_get_mm_counter(mm, _MM_FILEPAGES())
- + _stp_get_mm_counter(mm, _MM_ANONPAGES()))
+ + _stp_get_mm_counter(mm, _MM_ANONPAGES())
+%(systemtap_v > "4.2" %?
+ + _stp_get_mm_counter(mm, _MM_SHMEMPAGES())
+%)
+ )
}
return 0
}