ECU Software

Is there any open source software for ECU fault find and tweaking vehicle performance?