diff --git a/index.html b/index.html index 2387dfd..4220a1d 100644 --- a/index.html +++ b/index.html @@ -1275,7 +1275,9 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
  • 21.5.2. Memory leaks
  • -
  • 21.6. Userland content bibliography
  • +
  • 21.6. Interpreted languages
  • +
  • 21.7. Node.js
  • +
  • 21.8. Userland content bibliography
  • 22. Userland assembly @@ -3404,7 +3406,7 @@ cd userland --arch aarch64 \ --qemu-which host \ --userland-build-id host \ - --userland userland/c/print_argv.c \ + --userland userland/c/command_line_arguments.c \ --userland-args 'asdf "qw er"' \ ; @@ -3452,7 +3454,7 @@ cd userland --gcc-which host \ --qemu-which host \ --userland-build-id host \ - --userland userland/c/print_argv.c \ + --userland userland/c/command_line_arguments.c \ --userland-args 'asdf "qw er"' \ ; @@ -5635,7 +5637,7 @@ el0_svc+0x8/0xc
    -
    ./run-gdb --gdbserver --userland userland/c/print_argv.c main
    +
    ./run-gdb --gdbserver --userland userland/c/command_line_arguments.c main
    @@ -7031,13 +7033,13 @@ sudo ./setup -y

    10.1. QEMU user mode getting started

    -

    Let’s run userland/c/print_argv.c built with the Buildroot toolchain on QEMU user mode:

    +

    Let’s run userland/c/command_line_arguments.c built with the Buildroot toolchain on QEMU user mode:

    ./build user-mode-qemu
     ./run \
    -  --userland userland/c/print_argv.c \
    +  --userland userland/c/command_line_arguments.c \
       --userland-args='asdf "qw er"' \
     ;
    @@ -7076,7 +7078,7 @@ qw er
    ./run \
       --arch aarch64 \
       --gdb-wait \
    -  --userland userland/c/print_argv.c \
    +  --userland userland/c/command_line_arguments.c \
       --userland-args 'asdf "qw er"' \
     ;
    @@ -7088,7 +7090,7 @@ qw er
    ./run-gdb \
       --arch aarch64 \
    -  --userland userland/c/print_argv.c \
    +  --userland userland/c/command_line_arguments.c \
       main \
     ;
    @@ -7101,7 +7103,7 @@ qw er
    ./run \
       --arch aarch64 \
       --gdb \
    -  --userland userland/c/print_argv.c \
    +  --userland userland/c/command_line_arguments.c \
       --userland-args 'asdf "qw er"' \
     ;
    @@ -7322,7 +7324,7 @@ qemu: uncaught target signal 6 (Aborted) - core dumped ./run \ --arch aarch64 \ --static \ - --userland userland/c/print_argv.c \ + --userland userland/c/command_line_arguments.c \ --userland-args 'asdf "qw er"' \ ;
    @@ -7454,7 +7456,7 @@ qemu-x86_64: /path/to/linux-kernel-module-cheat/submodules/qemu/accel/tcg/cpu-ex ./run \ --arch aarch64 \ --emulator gem5 \ - --userland userland/c/print_argv.c \ + --userland userland/c/command_line_arguments.c \ --userland-args 'asdf "qw er"' \ ; @@ -7472,14 +7474,14 @@ qemu-x86_64: /path/to/linux-kernel-module-cheat/submodules/qemu/accel/tcg/cpu-ex --emulator gem5 \ --gdb-wait \ --static \ - --userland userland/c/print_argv.c \ + --userland userland/c/command_line_arguments.c \ --userland-args 'asdf "qw er"' \ ; ./run-gdb \ --arch aarch64 \ --emulator gem5 \ --static \ - --userland userland/c/print_argv.c \ + --userland userland/c/command_line_arguments.c \ main \ ; @@ -21020,7 +21022,10 @@ git -C "$(./getvar qemu_source_dir)" checkout -

    userland/c/exit2.c

  • -

    userland/c/print_argv.c

    +

    userland/c/command_line_arguments.c: print one command line argument per line using argc and argv.

    +
    +

    Good sanity check for user mode: QEMU user mode getting started

    +
  • @@ -21630,7 +21635,72 @@ echo 1 > /proc/sys/vm/overcommit_memory
    -

    21.6. Userland content bibliography

    +

    21.6. Interpreted languages

    +
    +

    Maybe some day someone will use this setup to study the performance of interpreters:

    +
    +
    + +
    +
    +
    +

    21.7. Node.js

    +
    +

    Parent section: Interpreted languages.

    +
    +
    +

    Install the interpreter with:

    +
    +
    +
    +
    ./build-buildroot --config 'BR2_PACKAGE_NODEJS=y'
    +
    +
    +
    +

    TODO: broken as of 3c3deb14dc8d6511680595dc42cb627d5781746d + 1:

    +
    +
    +
    +
    ERROR: package host-nodejs installs executables without proper RPATH
    +
    +
    +
    +

    Examples:

    +
    +
    + +
    +
    +
    +

    21.8. Userland content bibliography