mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
out/run.sh: write before execution
This commit is contained in:
@@ -12445,7 +12445,14 @@ Profiling builds as of 3cea7d9ce49bda49c50e756339ff1287fd55df77 both use: `-g -O
|
||||
* `prof` uses `-pg` for gprof
|
||||
* `perf` uses `-lprofile` for google-pprof
|
||||
|
||||
See also: <<profiling-userland-programs>>.
|
||||
Profiling techniques are discussed in more detail at: <<profiling-userland-programs>>.
|
||||
|
||||
For the `prof` build, you can get the `gmon.out` file with:
|
||||
|
||||
....
|
||||
./run --arch aarch64 --emulator gem5 --userland userland/c/hello.c --gem5-build-type prof
|
||||
gprof "$(./getvar --arch aarch64 gem5_executable)" > tmp.gprof
|
||||
....
|
||||
|
||||
==== gem5 clang build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user