#! 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));
}
