Narrative:

During climb lost 400 rpm with full throttle. Airspeed began to decrease; I took flight controls from student. I returned to level flight; rpm increased slightly; then back down to 2100 with full throttle.engine began to shake intensely and making unhealthy sounds. [I] proceeded direct for the numbers at [the nearest] airport. ATC cleared me into class B airspace.I began to trouble shoot issue per poh engine roughness and tested both mags with a 125 drop in each. I set myself for a high approach should my engine fail. Engine roughness continued throughout flight. Landed safely.

Google
 

Original NASA ASRS Text

Title: C172 Instructor Pilot reported landing safely after experiencing loss of power and engine vibrations.

Narrative: During climb lost 400 rpm with full throttle. Airspeed began to decrease; I took flight controls from student. I returned to level flight; rpm increased slightly; then back down to 2100 with full throttle.Engine began to shake intensely and making unhealthy sounds. [I] proceeded direct for the numbers at [the nearest] airport. ATC Cleared me into Class B airspace.I began to trouble shoot issue per POH engine roughness and tested both mags with a 125 drop in each. I set myself for a high approach should my engine fail. Engine roughness continued throughout flight. Landed safely.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.