Lines Matching refs:vs
1770 static bool vmstat_parse_line(char *line, union vmstat *vs) { in vmstat_parse_line() argument
1791 vs->arr[field_idx] = val; in vmstat_parse_line()
1796 static int vmstat_parse(union vmstat *vs) { in vmstat_parse() argument
1805 memset(vs, 0, sizeof(union vmstat)); in vmstat_parse()
1813 if (!vmstat_parse_line(line, vs)) { in vmstat_parse()
2315 union vmstat vs; in mp_event_psi() local
2349 if (vmstat_parse(&vs) < 0) { in mp_event_psi()
2364 base_file_lru = vs.field.nr_inactive_file + vs.field.nr_active_file; in mp_event_psi()
2365 init_ws_refault = vs.field.workingset_refault; in mp_event_psi()
2377 if (vs.field.pgscan_direct > init_pgscan_direct) { in mp_event_psi()
2378 init_pgscan_direct = vs.field.pgscan_direct; in mp_event_psi()
2379 init_pgscan_kswapd = vs.field.pgscan_kswapd; in mp_event_psi()
2381 } else if (vs.field.pgscan_kswapd > init_pgscan_kswapd) { in mp_event_psi()
2382 init_pgscan_kswapd = vs.field.pgscan_kswapd; in mp_event_psi()
2392 base_file_lru = vs.field.nr_inactive_file + vs.field.nr_active_file; in mp_event_psi()
2393 init_ws_refault = vs.field.workingset_refault; in mp_event_psi()
2397 thrashing = (vs.field.workingset_refault - init_ws_refault) * 100 / base_file_lru; in mp_event_psi()