[lldb-dev] FYI, enabling email verification requirement for creating Phabricator accounts

2017-04-21 Thread Chandler Carruth via lldb-dev
Hoping this will at least reduce the spam starting to show up. Let me or
Eric know if you hit any issues with this (we've not tried it before).
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] FYI, enabling email verification requirement for creating Phabricator accounts

2017-04-21 Thread Chandler Carruth via lldb-dev
Never mind. The option doesn't work the way desired. I'll follow up with
Eric about other ideas to reduce spam.

On Fri, Apr 21, 2017 at 2:51 PM Chandler Carruth 
wrote:

> Hoping this will at least reduce the spam starting to show up. Let me or
> Eric know if you hit any issues with this (we've not tried it before).
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] NetBSD core(5) files for LLDB's test-suite

2017-04-21 Thread Kamil Rytarowski via lldb-dev
Hello,

I've prepared two sets of core(5) files with the following programs:
 - 1lwp_SIGSEGV (signal SIGSEGV emitted for thread)
 - 1lwp_busyloop (signal SIGABRT emitted for the whole process)

My compiler is GCC 5.4.0 and host NetBSD/amd64 7.99.70.

The first set is written with a custom startup assembly without usage of
libc. I used -nostdlib option for the compiler. The second set is plain
C implementation.

The first set generates files of size 6752 bytes/core. After compressing
with the default options of bzip2, the size is respectively 1035 and 990
bytes.

The second set in C with regular system libraries gives core(5) files of
size 103488 and 103472 bytes. bzip2 with the default options reduces
their size to 15212 and 15040 bytes.


Writing bare code starting additional LWP in the first approach is more
difficult, especially since it will need to be ported to more platforms.
I decided to implement just the libc version and go for native lwp
interfaces and without usage of libpthread.

The size of core(5) files is as follows: 131800 and 131784 bytes.
Compressed with the default options of bzip2: 16345 and 16243 bytes.


I propose to go for regular libc code version and optionally compress
the binary files. I request to include Makefile and source code of files
to LLDB. I propose to ship 4 core files per supported target architecture.


I put the source code and NetBSD/amd64 core(5) files ready to pick-up here:
http://www.netbsd.org/~kamil/lldb/netbsd-core/


For the reference, I include the used source code below:

Source C code:
$ cat 1lwp_SIGSEGV.c
void main(void)
{
volatile int *a = 0;
*a = 100;
}
$ cat 1lwp_busyloop.c
int main(int argc, char **argv)
{
for(;;)
continue;
}


Startup assembly (there is replaced @VERSION@ with __NetBSD_Version__
from /usr/include/sys/param.h):
.globl _start

.section ".note.netbsd.ident", "a", @note
.long 2f-1f
.long 4f-3f
.long 1
1:  .asciz "NetBSD"
2:  .p2align 2
3:  .long @VERSION@
4:  .p2align 2

.section .text
_start:
andq $0xfff0, %rsp
subq $0x8, %rsp
call main



Source code with two LWPs (without libpthread):
#include 
#include 
#include 

static void
lwp_main_func(void *arg)
{
#if 1
volatile int *a = 0;
*a = 100;
#else
for(;;)
continue;
#endif
}

int
main(int argc, char **argv)
{
ucontext_t uc;
lwpid_t lid;
static const size_t ssize = 16*1024;
void *stack;

stack = malloc(ssize);
_lwp_makecontext(&uc, lwp_main_func, NULL, NULL, stack, ssize);
_lwp_create(&uc, 0, &lid);
_lwp_wait(lid, NULL);   
}



signature.asc
Description: OpenPGP digital signature
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Improve performance of crc32 calculation

2017-04-21 Thread Ed Maste via lldb-dev
On 13 April 2017 at 07:28, Pavel Labath via lldb-dev
 wrote:
> Improving the checksumming speed is definitely a worthwhile contribution,
> but be aware that there is a pretty simple way to avoid computing the crc
> altogether, and that is to make sure your binaries have a build ID. This is
> generally as simple as adding -Wl,--build-id to your compiler flags.

FreeBSD's default toolchain still uses an ancient GNU ld that lacks
build-id support (on all platforms other than aarch64), so I'll be
very happy to see improvements in checksum speed. We're migrating to
LLD and will be able to use --build-id eventually, but it will be a
while yet.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev