Add dev_get_stats support for 2.6.34 and 2.6.35