Dumping process segments of an application in linux kernel