File: proc_mem-embedded.stp

package info (click to toggle)
systemtap 4.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 39,000 kB
  • sloc: cpp: 78,785; ansic: 62,419; xml: 49,443; exp: 42,735; sh: 11,254; python: 3,062; perl: 2,252; tcl: 1,305; makefile: 1,072; lisp: 105; awk: 101; asm: 91; java: 56; sed: 16
file content (26 lines) | stat: -rwxr-xr-x 786 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! stap -p4 --compatible=2.9

probe begin {
  printf("%d\n", _stp_valid_task(0) + _MM_FILEPAGES()
	 + _MM_ANONPAGES() + _stp_get_mm_counter(0, 0)
	 + _stp_mem_txt_adjust(0, 0))
  printf("%s\n", _stp_number_to_string_postfix(1, 0, ""))
  printf("%d\n", proc_mem_size());
  printf("%d\n", proc_mem_rss());
  printf("%d\n", proc_mem_shr());
  printf("%d\n", proc_mem_txt());
  printf("%d\n", proc_mem_data());
  printf("%d\n", mem_page_size())
  printf("%s\n", bytes_to_string(0));
  printf("%s\n", pages_to_string(0));
  printf("%s\n", proc_mem_string());
}

probe end {
  printf("%d\n", proc_mem_size(0));
  printf("%d\n", proc_mem_rss(0));
  printf("%d\n", proc_mem_shr(0));
  printf("%d\n", proc_mem_txt(0));
  printf("%d\n", proc_mem_data(0));
  printf("%s\n", proc_mem_string(0));
}