simpleperf: use ioctl to get event fd id.

Currently EventFd uses read() to get id. But it
is affected by event_attr.read_format, which will
change based on record options. So switch to get id
via ioctl.

Bug: 211001523
Test: run simpleperf_unit_test
Change-Id: I4beb9865e357aa77c2522d5a2688b925cbb793e2
1 file changed