<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/compiler-rt/lib/memprof/memprof_malloc_linux.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[compiler-rt][memprof] adding free_sized/free_aligned_sized intercept… (#154011)</title>
<updated>2025-08-19T23:27:08+00:00</updated>
<author>
<name>David CARLIER</name>
<email>devnexen@gmail.com</email>
</author>
<published>2025-08-19T23:27:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c9f037622fdee470f056a1712fb9b741aaae620a'/>
<id>c9f037622fdee470f056a1712fb9b741aaae620a</id>
<content type='text'>
…ions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
…ions.</pre>
</div>
</content>
</entry>
<entry>
<title>[sanitizer] Remove DTLS_on_libc_memalign (#108120)</title>
<updated>2024-09-12T07:50:54+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2024-09-12T07:50:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b07f1be92c1350d8d5b0952f49a2c3aeedcccb2f'/>
<id>b07f1be92c1350d8d5b0952f49a2c3aeedcccb2f</id>
<content type='text'>
`DTLS_on_libc_memalign` is called from primary
allocator, so `__sanitizer_get_allocated_begin`
should also be aware of allocation,
and correctly handled by `GetDTLSRange`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`DTLS_on_libc_memalign` is called from primary
allocator, so `__sanitizer_get_allocated_begin`
should also be aware of allocation,
and correctly handled by `GetDTLSRange`.</pre>
</div>
</content>
</entry>
<entry>
<title>[MemProf][NFC] Clean up runtime code (#80581)</title>
<updated>2024-02-07T01:55:32+00:00</updated>
<author>
<name>Enna1</name>
<email>xumingjie.enna1@bytedance.com</email>
</author>
<published>2024-02-07T01:55:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bd1324113e90884a4a83d6232ecf0c623e2e113e'/>
<id>bd1324113e90884a4a83d6232ecf0c623e2e113e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[sanitizer] Switch dlsym hack to internal_allocator</title>
<updated>2021-11-13T00:11:10+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2021-11-11T02:17:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cb0e14ce6dcdd614a7207f4ce6fcf81a164471ab'/>
<id>cb0e14ce6dcdd614a7207f4ce6fcf81a164471ab</id>
<content type='text'>
Since glibc 2.34, dlsym does
  1. malloc 1
  2. malloc 2
  3. free pointer from malloc 1
  4. free pointer from malloc 2
These sequence was not handled by trivial dlsym hack.

This fixes https://bugs.llvm.org/show_bug.cgi?id=52278

Reviewed By: eugenis, morehouse

Differential Revision: https://reviews.llvm.org/D112588
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since glibc 2.34, dlsym does
  1. malloc 1
  2. malloc 2
  3. free pointer from malloc 1
  4. free pointer from malloc 2
These sequence was not handled by trivial dlsym hack.

This fixes https://bugs.llvm.org/show_bug.cgi?id=52278

Reviewed By: eugenis, morehouse

Differential Revision: https://reviews.llvm.org/D112588
</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC][asan][memprov] Remove dlsym hack from posix_memalign</title>
<updated>2021-11-11T00:35:14+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2021-11-11T00:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1da33a51f11a7546c7db925e381482266e7c2304'/>
<id>1da33a51f11a7546c7db925e381482266e7c2304</id>
<content type='text'>
It was added for RTEMS which was removed at D104279.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was added for RTEMS which was removed at D104279.
</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC][sanitizer] Move GET_MALLOC_STACK_TRACE closer to the use</title>
<updated>2021-11-10T23:42:07+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2021-11-10T23:41:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=651797f488682072fcb27ccb9da333b52b55ea7d'/>
<id>651797f488682072fcb27ccb9da333b52b55ea7d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[MemProf] Memory profiling runtime support</title>
<updated>2020-10-16T16:47:02+00:00</updated>
<author>
<name>Teresa Johnson</name>
<email>tejohnson@google.com</email>
</author>
<published>2020-09-03T22:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3d4bba302d2460b9ac6463ef920c301f1f40fb41'/>
<id>3d4bba302d2460b9ac6463ef920c301f1f40fb41</id>
<content type='text'>
See RFC for background:
http://lists.llvm.org/pipermail/llvm-dev/2020-June/142744.html

Follow on companion to the clang/llvm instrumentation support in D85948
and committed earlier.

This patch adds the compiler-rt runtime support for the memory
profiling.

Note that much of this support was cloned from asan (and then greatly
simplified and renamed). For example the interactions with the
sanitizer_common allocators, error handling, interception, etc.

The bulk of the memory profiling specific code can be found in the
MemInfoBlock, MemInfoBlockCache, and related classes defined and used
in memprof_allocator.cpp.

For now, the memory profile is dumped to text (stderr by default, but
honors the sanitizer_common log_path flag). It is dumped in either a
default verbose format, or an optional terse format.

This patch also adds a set of tests for the core functionality.

Differential Revision: https://reviews.llvm.org/D87120
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See RFC for background:
http://lists.llvm.org/pipermail/llvm-dev/2020-June/142744.html

Follow on companion to the clang/llvm instrumentation support in D85948
and committed earlier.

This patch adds the compiler-rt runtime support for the memory
profiling.

Note that much of this support was cloned from asan (and then greatly
simplified and renamed). For example the interactions with the
sanitizer_common allocators, error handling, interception, etc.

The bulk of the memory profiling specific code can be found in the
MemInfoBlock, MemInfoBlockCache, and related classes defined and used
in memprof_allocator.cpp.

For now, the memory profile is dumped to text (stderr by default, but
honors the sanitizer_common log_path flag). It is dumped in either a
default verbose format, or an optional terse format.

This patch also adds a set of tests for the core functionality.

Differential Revision: https://reviews.llvm.org/D87120
</pre>
</div>
</content>
</entry>
</feed>
