A mechanic should have a scanner that could read for knock
As far as it throwing a code not sure