1. 07 Sep, 2022 3 commits
  2. 06 Sep, 2022 1 commit
  3. 05 Sep, 2022 6 commits
  4. 01 Sep, 2022 1 commit
  5. 31 Aug, 2022 1 commit
  6. 30 Aug, 2022 7 commits
  7. 29 Aug, 2022 11 commits
  8. 26 Aug, 2022 5 commits
    • Dridi Boukelmoune's avatar
      cocci: Make isomorphisms actually work · dab8e4ac
      Dridi Boukelmoune authored
      It turns out declaring typedefs in coccinelle works better with the
      typedef keyword. Reusing the same keyword for the same purposes seems
      so obvious in hindsight.
      
      What happened before was that a generic type would be created, making
      VCL_BOOL or VCL_VOID match virtually any type, completely defeating
      the isomorphism purpose. With this out of the way, we can actually
      resume the effort of adding more typedefs.
      
      To summarize:
      
      - we should declare a typedef as an isomorphism
      - we should define macros as such
      
      I'm considering renaming tools/coccinelle/vdef.h to varnish.h to match
      the varnish.iso file name and wrapping the README instructions in a new
      shell script.
      dab8e4ac
    • Dridi Boukelmoune's avatar
      Revert "Swap isomorphism subjects" · 2af77a57
      Dridi Boukelmoune authored
      This reverts commit c722eb77.
      
      It didn't change anything and it certainly didn't fix anything either.
      2af77a57
    • Dridi Boukelmoune's avatar
      cocci: Remove VRT_CTX isomorphism attempt · eb834f8e
      Dridi Boukelmoune authored
      It does not work, and it is inaccurate since it doesn't include the ctx
      identifier that is normally part of the definition (it can't anyway).
      
      Refs f5b0b201
      eb834f8e
    • Dridi Boukelmoune's avatar
      cocci: Apply printf_nofmt.cocci again · b43d539c
      Dridi Boukelmoune authored
      b43d539c
    • Dridi Boukelmoune's avatar
      cocci: Help spatch operate on VMODs · 077ed037
      Dridi Boukelmoune authored
      Successfully tested with a dummy semantic patch:
      
          @@
          idexpression ctx, caller;
          @@
      
          -CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
          +AN(ctx);
           CHECK_OBJ_NOTNULL(caller, DEBUG_CALLER_MAGIC);
          -AN(caller->sub);
          +assert(caller->sub);
      
      I decided to cram all definitions in the existing vdef.h file to keep
      our relatively simple setup. We can add more macros as we learn what
      coccinelle trips over.
      
      Refs f5b0b201
      077ed037
  9. 23 Aug, 2022 2 commits
  10. 16 Aug, 2022 3 commits
    • Dridi Boukelmoune's avatar
      doc: Mention logexpect -run · 727cdcbb
      Dridi Boukelmoune authored
      727cdcbb
    • Dridi Boukelmoune's avatar
      vtc: Rename test vtc_b0 to vtc_l0 · bcdbc5b0
      Dridi Boukelmoune authored
      bcdbc5b0
    • Dridi Boukelmoune's avatar
      vsl: Apply VSL_OPT_E to the Begin[4] field · 07a785eb
      Dridi Boukelmoune authored
      As I was relying on the lack of -E option to discard another type of
      non-ESI sub-requests I recently misled myself with this assumption. It
      took me a while to realize that I was also seeing transactions I was not
      interested in, corrupting the statistics I was deriving from a log dump.
      
      Now that vmod_pesi [1] sets the precedent, we should expect new types of
      sub-requests to materialize and expecting the reason for the transaction
      to be "esi" is no longer appropriate.
      
      We could also track this field as vtx::sub_level for example, to make it
      available as VSL query LHS operand. The focus here was to adjust the
      behavior of an existing feature, not add a new one.
      
      [1] https://code.uplex.de/uplex-varnish/libvdp-pesi
      07a785eb