stay awake all night一晩中 means “all night,” and 起きて means “stay awake” or “be awake.” The phrase often continues with another verb or is followed by いる/いた to describe remaining awake.
JA: 試験の前日は一晩中起きて勉強していた。
EN: I stayed up all night studying the day before the exam.