There was a thread back in 2015 on DFO that touched on these question.... At that time I posted list that I had put together of who played drums on what (there was a great YouTube channel back then that was posting scads of "Who Played That Theme" credit listings. So...
Lost in Space - John Williams, composer; Shelly Manne, drums; Emil Richards and Larry Bunker, perc
Starsky and Hutch - Tom Scott, composer; Rick Marotta, drums; Steve Gadd and Ralph McDonald, perc.
Mary Tyler Moore - Pat Williams, composer; John Guerin, drums; again Emil and Larry, perc
Magnum P.I. - Mike Post, composer; Mike Baird, drums; Jeff Gerson, perc
CHiPs - John Parker, composer; Steve Schaeffer, drums
Gilligan's Island - Shelly Manne, drums
The Odd Couple - and there it is - Earl Palmer, drums
Ironside - Quincey Jones, composer; Earl Palmer, drums
The Flintstones - Alvin Stoller, drums
Quincy, M.E - Steve Schaeffer, drums
The Rockford Files - Mike Baird, drums (as expected)
The Jeffersons - Ed Greene, drums
Sanford and Sons - Quincey, composer; James Gadson, drums
Fame - Yogi Horton, drums
Three's Company - Hal Blaine, drums
Welcome Back Kotter - Jeff Porcaro, drums
The Golden Girls - Jeff again on drums
Brady Bunch - Earl Palmer
Mork and Mindy - Harvey Mason, drums
I Dream of Jeannie - Earl Palmer, drums
Wild Wild West - brush solos - Joe Porcaro!!
Barney Miller - John Guerin
Top Cat (cartoon) - Alvin Stoller
Knot's Landing - J.R. Robinson (though I did play on the pilot -
though not on the theme - :-( )