add proc stat read function