Outline Of Diagnosis
WARNING: This page is about a different car, the 2006 Subaru Outback. However, it is still accessible from the selected car via links, so may be relevant.
Detect the open or short circuit of knock sensor.
Judge as NG if it is out of specification.