Consider the Schwarzschild metric
$$ds^2 = -f(r)dt^2 + \frac{1}{f(r)}dr^2+r^2 d\Omega^2,$$
where $f(r)=1-\frac{2M}{r}$. I take it that $M$, although not really the mass of a black hole, is the coefficient that is closely associated with the mass. I'm curious as to what will happen if in the metric I directly replace $M$ with a distribution $M(r)$ and what happens to things like null and timelike geodesics, its horizons, etc.
My question is: Is it a valid starting point of inquiry to replace $M$ with a distribution $M(r)$? Or are there any physical rules that will make this problem ill-posed?