Glycolysis is the first step whereas Krebs cycle is the second step of cellular respiration.
They both formed 2 molecules of ATP along with some carbon as a waste.