Change ds == Ds() to ds.valid
linux: initial Tracebuffer support