Open xinyi-li7 opened 1 year ago
Hi,
In the function nvbit_add_call_arg_launch_val64 (const Instr, int offset, bool is_variadic_arg = false), I'm curious what the offset is.
nvbit_add_call_arg_launch_val64 (const Instr, int offset, bool is_variadic_arg = false)
offset
For example, if I passed nvbit_set_at_launch( ctx, func, buf, n*sizeof(uint64_t));, and let offset=3, is it passing the fourth element of buf?
nvbit_set_at_launch( ctx, func, buf, n*sizeof(uint64_t));
offset=3
buf
Besides, I can only use nvbit_set_at_launch once to pass one variable, right? That is I cannot call nvbit_set_at_launch twice to pass two variables.
nvbit_set_at_launch
Thanks.
Hi,
In the function
nvbit_add_call_arg_launch_val64 (const Instr, int offset, bool is_variadic_arg = false)
, I'm curious what theoffset
is.For example, if I passed
nvbit_set_at_launch( ctx, func, buf, n*sizeof(uint64_t));
, and letoffset=3
, is it passing the fourth element ofbuf
?Besides, I can only use
nvbit_set_at_launch
once to pass one variable, right? That is I cannot call nvbit_set_at_launch twice to pass two variables.Thanks.