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

Tracing cudaMalloc function #5141

Open
shiyiyuedeyu opened this issue Nov 14, 2024 · 0 comments
Open

Tracing cudaMalloc function #5141

shiyiyuedeyu opened this issue Nov 14, 2024 · 0 comments

Comments

@shiyiyuedeyu
Copy link

shiyiyuedeyu commented Nov 14, 2024

I tried to trace cudaMalloc just like #3616 .
But args which I got seem to be wrong.
cudaError_t cudaMalloc ( void** devPtr, size_t size )
`
/usr/share/bcc/tools$ sudo ./trace 'r:/XXX/libcudart.so.11.0:cudaMalloc "arg1 = %lld, arg2 = %lld, arg3 = %lld, arg4 = %lld, arg5 = %lld, arg6 = %lld", arg1, arg2, arg3, arg4, arg5, arg6'

PID TID COMM FUNC -

4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553945088, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554039296, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554122496, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554125568, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554127104, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554127872, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554128640, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554129408, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553632256, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553750016, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553768448, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706494464, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553771520, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553935104, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706497536, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253676869888, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253676869888, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553935872, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253553939712, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554123264, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253554130176, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706501376, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253552026880, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253552027648, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706514432, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253676747264, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140252475695872, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706769152, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706515968, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140252475698176, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706521344, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706769152, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706771456, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706774528, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140252475698944, arg4 = 28, arg5 = 2, arg6 = 2
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140252475699712, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253706776064, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253704434176, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054368 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140252475700480, arg4 = 28, arg5 = 2, arg6 = 0
4053870 4054353 olive_main cudaMalloc arg1 = 0, arg2 = 140280516437504, arg3 = 140253676747264, arg4 = 28, arg5 = 2, arg6 = 0
`

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

1 participant