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

support navigate complex data object in user-space trace script #15

Open
ChinaXing opened this issue Jun 24, 2022 · 0 comments
Open

support navigate complex data object in user-space trace script #15

ChinaXing opened this issue Jun 24, 2022 · 0 comments

Comments

@ChinaXing
Copy link

ChinaXing commented Jun 24, 2022

just like the bpftrace, its better to enable trace an running program in user-space
and navigate/ traverse its argument and member field of the argument when it is a complex data object:

surftrace -e 'uprobe:/home/test/observer:oceanbase_transaction { printf("%d", arg0->mvcc_ctx_->tx_id_); }'

Here, the arg0 is the argument of function 'oceanbase_transaction' with type 'ObTxDesc', and we want to print the transaction id

info, which nested in 'ObTxDesc.mvcc_ctx_.tx_id_'

Thanks:)

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