These little beetles bore into dead or dying trees. As they enter they leave these little sawdust columns coming out of the holes.
These beetles then farm a fungus in the galleries they make thought the trees xylem. They love eating some fungus.
The beetles don’t necessarily kill the tree. The tree is basically dead by the time these little critters show up.