Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the addresses of kernel arguments? #40

Open
allencho1222 opened this issue Mar 9, 2021 · 1 comment
Open

How to get the addresses of kernel arguments? #40

allencho1222 opened this issue Mar 9, 2021 · 1 comment

Comments

@allencho1222
Copy link

allencho1222 commented Mar 9, 2021

It seems that NVBit has abilities to get the addresses of launched kernel arguments.

image

However, I couldn't find a way to know the number of kernel arguments to access void** kernelParams;

For example, when I access kernelParams from kernelParams[0] to kernelParams[N - 1], what is N (where to retrieve N)?

While information regarding kernel parameters can be found here:

image

The description just says it can be directly retrieved from the kernel's image (what is the meaning of the kernel's image here?)

@x-y-z
Copy link
Collaborator

x-y-z commented Mar 9, 2021

You should be able to get a kernel function name with its parameters via nvbit_get_func_name. By parsing the output, you should be able to know how many kernel parameters are there and the each parameter type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants