simpleperf: Move code handling ETMBranchList file to a separate file

So it can be shared between the inject cmd and the record cmd.

Bug: 279094308
Test: run simpleperf_unit_test
Change-Id: I5865c885f32e812e43a4ee8f30beea72dffc3f72
9 files changed