def METHOD_NAME(cpu, data, size):
    event = b["events"].event(data)
    print("%-8s %-6d %-16s %-7.2f %s" % (strftime("%H:%M:%S"), event.pid,
        event.comm.decode('utf-8', 'replace'), float(event.delta) / 1000,
        event.fname.decode('utf-8', 'replace')))
    # write to influxdb
    test_data = lmp_data(strftime("%H:%M:%S"),'glob',event.pid,event.comm.decode('utf-8', 'replace'),float(event.delta) / 1000,event.fname.decode('utf-8', 'replace'))
    #print(test_data)
    write2db(data_struct, test_data, influx_client, DatabaseType.INFLUXDB.value)