def METHOD_NAME(cpu, data, size):
    event = b["events"].event(data)
    exit_count = 0
    fork_count = 0
    if event.type == EventType.EVENT_FORK:
        fork_count += 1
        buffer.add(event.pid, event.comm)
        with open('fork.txt', 'a') as f1:
            f1.writelines(str(event.pid))
            f1.write("\n")
    else:
        exit_count += 1
        res = buffer.delete(event.pid)
        with open('exit.txt', 'a') as f2:
            f2.writelines(str(event.pid))
            f2.write("\n")