def METHOD_NAME(self):
    # kill process running in background
    process.system("pkill perf", ignore_status=True)
    process.system('pkill ppc64_cpu', ignore_status=True)
    # remove perf.data file generated from perf record
    if os.path.isfile("perf.data"):
        process.run('rm -f perf.data')
    # Collect the dmesg
    dmesg.collect_dmesg()