If your dog is passing very hard and small feces, passing feces infrequently, struggling to defecate, or not passing feces at all, they should be assessed by a veterinarian to determine the underlying cause.