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

配置项的各个参数含义具体是什么 #24

Closed
Cr321 opened this issue Jan 24, 2022 · 2 comments
Closed

配置项的各个参数含义具体是什么 #24

Cr321 opened this issue Jan 24, 2022 · 2 comments

Comments

@Cr321
Copy link
Contributor

Cr321 commented Jan 24, 2022

Raphael.MAP64_MODE | Raphael.ALLOC_MODE | 0x0F0000 | 1024
前两个mode我大概可以猜到是什么,一个是监听 MMAP,一个是监听 ALLOC,查看源码我看到还有一个 DIFF_CACHE,这是什么含义?
后面的 0x0F0000 和 1024 又是配置的什么?

@shentianzhou
Copy link
Collaborator

  • 低16位:拦截阈值配置(小于此值的不拦截,仅ALLOC模式生效,MAP64模式不受限制)
  • 20 - 16:栈回溯最大深度,最大栈回溯:min(32/16, 参数控制)
  • 第22位:Raphael.ALLOC_MODE,监控malloc、calloc、realloc、memalign、free等调用
  • 第23位:Raphael.MAP64_MODE,监控mmap、mmap64、munmap等调用
  • 其余位:未定义

@Cr321
Copy link
Contributor Author

Cr321 commented Feb 19, 2022

  • 低16位:拦截阈值配置(小于此值的不拦截,仅ALLOC模式生效,MAP64模式不受限制)
  • 20 - 16:栈回溯最大深度,最大栈回溯:min(32/16, 参数控制)
  • 第22位:Raphael.ALLOC_MODE,监控malloc、calloc、realloc、memalign、free等调用
  • 第23位:Raphael.MAP64_MODE,监控mmap、mmap64、munmap等调用
  • 其余位:未定义

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

2 participants