2.6.6 Non-eigenstates

1
If you happen to know the wave function, how can you find the probability of an eigenvalue, given its eigenfunction?