#! stap -p4

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_pid(0));
  printf("%d\n", proc_mem_rss_pid(0));
  printf("%d\n", proc_mem_shr_pid(0));
  printf("%d\n", proc_mem_txt_pid(0));
  printf("%d\n", proc_mem_data_pid(0));
  printf("%s\n", proc_mem_string_pid(0));
}
