[Lldb-commits] [PATCH] D33674: Implementation of Intel(R) Processor Trace support for Linux
Ravitheja Addepally via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 7 07:51:39 PDT 2017
ravitheja added inline comments.
================
Comment at: source/Plugins/Process/Linux/NativeProcessLinux.cpp:3009-3010
+ errno = 0;
+ m_mmap_base =
+ mmap(NULL, (metabufsize + page_size), PROT_WRITE, MAP_SHARED, m_fd, 0);
+ if (m_mmap_base == MAP_FAILED) {
----------------
zturner wrote:
> Perhaps you can use `llvm::MemoryBuffer` here? It mmaps internally
In my case, I only want to allocate it using mmap with the options i use here, with
`llvm::MemoryBuffer` I see no option to force it to only use mmap and with the options i need ?
https://reviews.llvm.org/D33674
More information about the lldb-commits
mailing list