Purpose of the Camshaft
A well-written and comprehensive guide. Read all pages as there is also information on variable valve timing.
Inspecting Camshaft for Wear
You would also be checking for visible wear, pitting or ground areas. The camshaft lobe should be pretty smooth. This is the same video in the bottom end section as the process is the same for overhead cam or pushrod engines.