Bottom line, if the officer is measuring your pocket knife, he'll find SOMETHING to arrest you for or issue a summons, as clearly you have done something to justify the contact in his or her mind.