DTC P0335: Crankshaft Position Sensor - Circuit Malfunction: Reference
WARNING: This page is about a different car, the 2003 Suzuki Aerio. However, it is still accessible from the selected car via links, so may be relevant.
To test CKP sensor with an oscilloscope, backconnect oscilloscope between ECM harness connector C45 terminals No. 9 (Black/Red wire) and No. 19 (Brown wire). See Figure. Compare CKP sensor waveform, to waveform in illustration. See Fig 1.
Courtesy of SUZUKI OF AMERICA CORP.