- if(unlikely(hash == rss_huge_hash && !strcmp(s, "rss_huge"))) {
- mem->rss_huge = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == mapped_file_hash && !strcmp(s, "mapped_file"))) {
- mem->mapped_file = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == writeback_hash && !strcmp(s, "writeback"))) {
- mem->writeback = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == dirty_hash && !strcmp(s, "dirty"))) {
- mem->dirty = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- mem->has_dirty_swap = 1;
- continue;
- }
-
- if(unlikely(hash == swap_hash && !strcmp(s, "swap"))) {
- mem->swap = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- mem->has_dirty_swap = 1;
- continue;
- }
-
- if(unlikely(hash == pgpgin_hash && !strcmp(s, "pgpgin"))) {
- mem->pgpgin = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == pgpgout_hash && !strcmp(s, "pgpgout"))) {
- mem->pgpgout = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == pgfault_hash && !strcmp(s, "pgfault"))) {
- mem->pgfault = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == pgmajfault_hash && !strcmp(s, "pgmajfault"))) {
- mem->pgmajfault = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
-/*
- if(unlikely(hash == inactive_anon_hash && !strcmp(s, "inactive_anon"))) {
- mem->inactive_anon = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == active_anon_hash && !strcmp(s, "active_anon"))) {
- mem->active_anon = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == inactive_file_hash && !strcmp(s, "inactive_file"))) {
- mem->inactive_file = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == active_file_hash && !strcmp(s, "active_file"))) {
- mem->active_file = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == unevictable_hash && !strcmp(s, "unevictable"))) {
- mem->unevictable = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == hierarchical_memory_limit_hash && !strcmp(s, "hierarchical_memory_limit"))) {
- mem->hierarchical_memory_limit = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_cache_hash && !strcmp(s, "total_cache"))) {
- mem->total_cache = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_rss_hash && !strcmp(s, "total_rss"))) {
- mem->total_rss = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_rss_huge_hash && !strcmp(s, "total_rss_huge"))) {
- mem->total_rss_huge = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_mapped_file_hash && !strcmp(s, "total_mapped_file"))) {
- mem->total_mapped_file = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_writeback_hash && !strcmp(s, "total_writeback"))) {
- mem->total_writeback = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_dirty_hash && !strcmp(s, "total_dirty"))) {
- mem->total_dirty = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_swap_hash && !strcmp(s, "total_swap"))) {
- mem->total_swap = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_pgpgin_hash && !strcmp(s, "total_pgpgin"))) {
- mem->total_pgpgin = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_pgpgout_hash && !strcmp(s, "total_pgpgout"))) {
- mem->total_pgpgout = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_pgfault_hash && !strcmp(s, "total_pgfault"))) {
- mem->total_pgfault = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }
-
- if(unlikely(hash == total_pgmajfault_hash && !strcmp(s, "total_pgmajfault"))) {
- mem->total_pgmajfault = strtoull(procfile_lineword(ff, i, 1), NULL, 10);
- continue;
- }