Maybe develop a way to trace/track guns not owned by the police or army.
This is not a bad idea. You could build some sort of RFID or other marker into the receiver in such a way as it wouldn't be possible to remove it without destroying the receiver. That would make registries more effective, to the extent that registries do any good.
Or devise a safety mechanism so that only one person can use a gun and that mechanism is non transferable.
Some Glocks have a feature like this, the handgrip has a sort of combination lock. You have to press the right combination with your fingers to take the safety off so that the gun can fire.
None of this is going to be any silver bullet. There are a few problems:
1 - Guns last a VERY long time, I have fired perfectly working guns that were made in the late 1800's. So the existing stock of guns isn't going anywhere for the next hundred years or so.
2 - Things like the lock on the glock could be defeated by a gunsmith. It would prevent stolen guns from being used by simple minded thieves, but it would not stop organized crime from modifying the guns and making them available to criminals. People who are willing to run sophisticated smuggling operations are no doubt willing to go this route.
3. Guns are mechanical devices operating on fundamentally 100 year old technology, they aren't integrated electronic devices like your laptop, so it's hard to find places to insert these sorts of locks that can't easily be disabled.
It would also be sensible to have some sort of ballistic registry. Every gun ever manufactured could have a couple of rounds fired in the factory and ballistic information stored and made available for the police. This could be done for existing guns as well.
Might be worthwhile having some research done into other ways that a signature could be collected from a gun. Perhaps some sort of marker inside the chamber so that ejected brass would have an impression that would make it easier to ID the gun, if the brass can be collected. In an Eaton Center type situation I am betting the perp is not going to stop to collect his brass from wherever it rolled, leaving evidence behind that could be used to trace the gun. There might also be things you could do with the rifling that would leave a better signature on a round--but you have to be careful about affecting accuracy is you mess with things there.
I think these are all good ideas but they are not a silver bullet.
It would also be worthwhile adopting a SENSIBLE approach to gun control. Rifles, even the assault rifles like the one used in Colorado, are not responsible for most gun related deaths. It's handguns, and street crime, that represents the biggest problem.