This project is mirrored from https://github.com/ARM-software/lisa.git. Pull mirroring updated .
  1. 24 Jun, 2022 6 commits
  2. 21 Jun, 2022 12 commits
  3. 20 Jun, 2022 3 commits
    • Douglas Raillard's avatar
      lisa._kmod: Fix copy overlay backend · 682dcd26
      Douglas Raillard authored
      FIX
      
      The copy overlay backend was not able to restore the deleted state of a
      file when an upper was reused as a lower, like overlayfs is able to
      using whiteout.
      
      Fix that by only restoring the top-most lower layer when using the copy
      backemd. This also has the advantage of speeding up the re-use of lowers
      as only one tree needs to be copied.
      
      After this change, lowers created with one backend cannot be mixed with
      lowers created by another backend, so add the backend to the cache key
      where appropriate.
      682dcd26
    • Douglas Raillard's avatar
      lisa._kmod: Speedup copy overlay backend · 6b65ac51
      Douglas Raillard authored
      FEATURE
      
      Use rsync when available in order to speedup the copy, as rsync is much
      faster than shutil.copytree() Python function.
      6b65ac51
    • Douglas Raillard's avatar
      lisa._kmod: Speedup copy overlay backend · 5554dcf7
      Douglas Raillard authored
      Speedup the copy overlay backend.
      5554dcf7
  4. 17 Jun, 2022 2 commits
    • Douglas Raillard's avatar
      lisa.utils: Speedup Loggable.get_logger() · 0e703ad4
      Douglas Raillard authored
      FIX
      
      Logging directly or indirectly inside a destructor (__del__) is
      problematic as they are invoked when the world is breaking down around
      them, which can trigger some harmless exceptions. For this reason,
      get_logger() was returning a dummy logger if __del__ was found in the
      stack.
      
      inspect.stack() is unfortunately really slow (150ms to get a stack frame
      of depth 25), which is enough to really slowdown the import of some
      modules and runtime code as well.
      
      Fix that by returning a wrapped logger object that will only inpsect the
      stack if an exception is raised.
      0e703ad4
    • Douglas Raillard's avatar
      tests/test_wlgen_rtapp.py: Fix workload cleanup · bf5b84cc
      Douglas Raillard authored
      FIX
      
      Ensure the workload is cleaned during the method call, so that we don't
      try to interact with the target when the interpreter is shutting down.
      bf5b84cc
  5. 16 Jun, 2022 2 commits
  6. 24 May, 2022 1 commit
  7. 23 May, 2022 10 commits
  8. 19 May, 2022 4 commits
    • Douglas Raillard's avatar
      lisa._kmod: Fix misleading log · abccdc04
      Douglas Raillard authored
      FIX
      
      The log entry claimed the user did not set CROSS_COMPILE
      unconditionally. Rephrase to avoid that, since CROSS_COMPILE is read and
      chewed by LISA anyway.
      abccdc04
    • Douglas Raillard's avatar
      lisa/_assets/kmodules/sched_tp/Makefile: Improve pahole output · 25584d37
      Douglas Raillard authored
      Use --show_only_data_members to avoid having useless anonymous type
      declaration in the middle of e.g. a struct.
      
      Consider the following type:
      
          struct foo {
             struct { int a; } bar;
          };
      
      GCC emits DWARF info looking this way:
      
          DW_TAG_structure_type
              DW_AT_name "foo"
              DW_TAG_member
                  DW_AT_name "bar"
                  DW_AT_type "struct "
                  DW_AT_data_member_location <0x42 - curr_loc>
             NULL
      
          0x42:
          DW_TAG_structure_type
              DW_TAG_member
                  DW_AT_name "a"
                  DW_AT_type "int "
                  DW_AT_data_member_location ...
              NULL
      
      Clang emits:
      
          DW_TAG_structure_type
              DW_AT_name "foo"
              DW_TAG_member
                  DW_AT_name "bar"
                  DW_AT_type "struct "
                  DW_AT_data_member_location 0x0
      
              DW_TAG_structure_type
                  DW_TAG_member
                      DW_AT_name "a"
                      DW_AT_type "int "
                      DW_AT_data_member_location ...
                  NULL
              NULL
      
      When pahole sees clang's output, it will emit something like that:
      
          struct foo {
             struct { int a; }; <------useless
             struct { int a; } bar;
          };
      
      But with --show_only_data_members, it will ignore any child of
      DW_TAG_structure_type that is not a DW_TAG_member and will print the
      expected code.
      25584d37
    • Douglas Raillard's avatar
      ef3d8230
    • Douglas Raillard's avatar
      lisa._kmod: Use LLVM make var to infer CC · 66a89779
      Douglas Raillard authored
      FEATURE
      
      LLVM=1 implies CC=clang, so make LISA recognize that.
      Additionally, recognize e.g. LLVM=-14 as a clang version and detect the
      toolchain accordingly.
      66a89779