Port the events handling from rocm-smi to amd-smi Change-Id: I0b4cb30a585cb2188a24be0e21c1c156b461bb1d