# Linux Kernel Module Cheat

### 24.10. m5out directory

When you run gem5, it generates an `m5out` directory at:

    echo $(./getvar --arch arm --emulator gem5 m5out_dir)"

The location of that directory can be set with `./gem5.opt -d`, and defaults to `./m5out`.

The files in that directory contains some very important information about the run, and you should become familiar with every one of them.

- gem5 m5out/system.terminal file

- gem5 <code>m5out/system.workload.dmesg</code> file

- gem5 m5out/stats.txt file

- gem5 config.ini