Finely chop pork, tofu, onion, and carrot.
Heat cooking oil in a pan and stir-fry the pork.
When the pork is half cooked, add the onion and carrot and continue stir-frying.
Add tofu and stir-fry, crushing it as you go.
Add rice and stir-fry until all ingredients are well mixed.
Season with soy sauce, salt, and pepper.
Add green onions, stir-fry once more, then plate.