Lines Matching refs:mem_st
987 static void memory_stat_parse_line(char* line, struct memory_stat* mem_st) { in memory_stat_parse_line() argument
998 mem_st->pgfault = value; in memory_stat_parse_line()
1000 mem_st->pgmajfault = value; in memory_stat_parse_line()
1002 mem_st->rss_in_bytes = value; in memory_stat_parse_line()
1004 mem_st->cache_in_bytes = value; in memory_stat_parse_line()
1006 mem_st->swap_in_bytes = value; in memory_stat_parse_line()
1009 static int memory_stat_from_cgroup(struct memory_stat* mem_st, int pid, uid_t uid) { in memory_stat_from_cgroup() argument
1023 memory_stat_parse_line(buf, mem_st); in memory_stat_from_cgroup()
1030 static int memory_stat_from_procfs(struct memory_stat* mem_st, int pid) { in memory_stat_from_procfs() argument
1061 mem_st->pgfault = pgfault; in memory_stat_from_procfs()
1062 mem_st->pgmajfault = pgmajfault; in memory_stat_from_procfs()
1063 mem_st->rss_in_bytes = (rss_in_pages * PAGE_SIZE); in memory_stat_from_procfs()
1064 mem_st->process_start_time_ns = starttime * (NS_PER_SEC / sysconf(_SC_CLK_TCK)); in memory_stat_from_procfs()
1341 struct memory_stat mem_st = {}; in kill_one_process() local
1361 memory_stat_parse_result = memory_stat_from_cgroup(&mem_st, pid, uid); in kill_one_process()
1363 memory_stat_parse_result = memory_stat_from_procfs(&mem_st, pid); in kill_one_process()
1390 procp->oomadj, mem_st.pgfault, mem_st.pgmajfault, mem_st.rss_in_bytes, in kill_one_process()
1391 mem_st.cache_in_bytes, mem_st.swap_in_bytes, mem_st.process_start_time_ns, in kill_one_process()