Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Mikhail Elhimov <m.elhimov@vk.team>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit v4] dbg: display fast function name along with ffid
Date: Wed, 14 Oct 2026 12:53:55 +0300	[thread overview]
Message-ID: <as9RM4ltZAdNzOEO@root> (raw)
In-Reply-To: <20261007163315.115049-1-m.elhimov@vk.team>

Hi, Mikhail!
Thanks for the patch!
LGTM, with minor nits below.

On 07.10.26, Mikhail Elhimov wrote:

<snipped>

> diff --git a/src/luajit_dbg.py b/src/luajit_dbg.py
> index 7c2d085f..1d553fb9 100644
> --- a/src/luajit_dbg.py
> +++ b/src/luajit_dbg.py

<snipped>

> diff --git a/test/tarantool-debugger-tests/debug-extension-tests.py b/test/tarantool-debugger-tests/debug-extension-tests.py
> index 5e369f00..b6e51185 100644
> --- a/test/tarantool-debugger-tests/debug-extension-tests.py
> +++ b/test/tarantool-debugger-tests/debug-extension-tests.py

<snipped>

>      # Sorted in LJT order.
>      lua_script = (
>          'local ffi = require("ffi")\n'
> +        'local math = require("math")\n'

Minor: This change is excess. math library is loaded by default.

<snipped>

>  class TestLJGCo(TestCaseBase):
>      location = 'lj_cf_print'
> -    extension_cmds = (
> -        'lj-gco ' + gcval('L->base + 0') + '\n'
> -        'lj-gco ' + gcval('L->base + 1') + '\n'
> -        'lj-gco ' + gcval('L->base + 2') + '\n'
> -        'lj-gco ' + gcval('L->base + 3') + '\n'
> -        'lj-gco ' + gcval('L->base + 4') + '\n'
> -        'lj-gco ' + gcval('L->base + 5') + '\n'
> -        'lj-gco ' + gcval('L->base + 6') + '\n'
> -        'lj-gco ' + gcval('L->base + 7') + '\n'
> +    extension_cmds = ''.join(
> +        ('lj-gco ' + gcval('L->base + {}'.format(i)) + '\n'
> +         for i in range(GCO_ARGS.count('\n')))
>      )
>  
>      lua_script = (
>          'local ffi = require("ffi")\n'
> +        'local math = require("math")\n'

Minor: This change is excess. math library is loaded by default.

>          'print(\n' +
>          GCO_ARGS +
>          '  1\n'  # Stub for the pattern.
> @@ -444,6 +453,66 @@ class TestLJGCo(TestCaseBase):

<snipped>

> +class TestLJFuncFFKnown(TestCaseBase):
> +    location = 'lj_cf_print'
> +    extension_cmds = ''.join(
> +        ('lj-func ' + gcval('L->base + {}'.format(i)) + '\n'
> +         for i in range(FFUNC_ARGS.count('\n')))
> +    )
> +
> +    lua_script = (
> +        'local math = require("math")\n'

Minor: This change is excess. math library is loaded by default.

<snipped>

> -- 
> 2.43.0
> 

-- 
Best regards,
Sergey Kaplun

      parent reply	other threads:[~2026-10-14  9:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-09 13:07 [Tarantool-patches] [PATCH luajit] " Mikhail Elhimov via Tarantool-patches
2026-09-22  9:16 ` Sergey Kaplun via Tarantool-patches
2026-09-23 22:55   ` Mikhail Elhimov via Tarantool-patches
2026-09-24 16:48   ` [Tarantool-patches] [PATCH luajit v2] " Mikhail Elhimov via Tarantool-patches
2026-09-24 20:14     ` [Tarantool-patches] [PATCH luajit v3] " Mikhail Elhimov via Tarantool-patches
2026-09-28 13:02       ` Sergey Bronnikov via Tarantool-patches
2026-10-07 16:27         ` Mikhail Elhimov via Tarantool-patches
2026-10-07 16:33         ` [Tarantool-patches] [PATCH luajit v4] " Mikhail Elhimov via Tarantool-patches
2026-10-08 10:58           ` Sergey Bronnikov via Tarantool-patches
2026-10-14  9:53           ` Sergey Kaplun via Tarantool-patches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=as9RM4ltZAdNzOEO@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=m.elhimov@vk.team \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit v4] dbg: display fast function name along with ffid' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox