Hell we barely notice when a several km comet enters the solar system and I've read about fairly large asteroids getting closer to the earth than the moon before being noticed.
We are going to notice a 9mm black hole? Maybe if it punctured Jupiter first.
We would detect one entering our Solar System.
Sure if the earth came between Jupiter and it's moons there might be some chaos, but the likelyhood of that is minimal. Even if it did happen we would notice, but the earth massed black hole would be very unlikely to make it into the inner solar system at that point.
The earth is a minor gravitational force in the solar system, most likely the effects would take significant time to notice... well after the nearest approach. Small gravitational tugs take many samples and significant time to notice. For example the outer solar system still doesn't add up... and we have no idea why.
Now imagine what a strong force an electron could provide :D
Also the relative velocities of earth and the black hole is extremely important. Depending on the relative velocities, it's possible that the blackhole simply gets lodged in the earth's core and we're 100% dead, another 100% dead scenario is if it plunges in, out the other side, but then "falls back" for another pass and so on.
If the tiny bullet-class black hole makes it through a planet, it could gain significant additional mass, and leave quite an exit wound.
Something in the 10^12 kg range is going to have an atomic scale event horizon so it’s not picking up significant mass as it shoots through the earth.
For example, it travels through Earth and then leaves a 9mm hole throughout the planet.
Earth by Brin
Hyperion Cantos by Simmons
Ilium by Simmons
Doomsday Effect by Thomas Wren
If I thought for a few more minutes I could probably come up with a half dozen examples (or expanded the definition to include eating the moon or mars, or included ones where it would be a massive spoiler)...
A gravitationally captured/trapped black hole eating earth is relatively common plot device in science fiction.