search for: gettid

Displaying 20 results from an estimated 29 matches for "gettid".

Did you mean: getpid
2011 Nov 06
1
libvirt, OSX and VirtualBox - how?
...getpid(0x7FFF685D1628, 0x108A16004, 0xEA60) = 48916 0 48916/0x3cc08: open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFFFFFFFB0) = 4 0 48916/0x3cc08: ioctl(0x4, 0x80086804, 0x7FFF685D1708) = 0 0 48916/0x3cc08: close(0x4) = 0 0 48916/0x3cc08: gettid(0x0, 0x7FFF74AC9F00, 0x108A32B58) = -1 Err#3 48916/0x3cc08: gettid(0x0, 0x7FFF74AC9F00, 0x108A32B58) = -1 Err#3 48916/0x3cc08: gettid(0x0, 0x7FFF74AC9F00, 0x108A32B58) = -1 Err#3 48916/0x3cc08: gettid(0x0, 0x7FFF74AC9F00, 0x108A32B58)...
2007 Apr 02
3
Problem with gettid() on CentOS 5/gcc 4.1.1
I can't get the simple program below to compile on CentOS 5 beta. It compiles (and runs) just fine on CentOS 4.4, and I'm using gettid() as described in the man page. I wonder if this is a problem with RHEL 5 as well, but I don't have a system to test on. I also wonder if this is a gcc 4.1.1 issue or something missing in CentOS 5. The issue is that the _syscall0 macro is not defined anywhere. If I copy and paste the follow...
2013 Nov 06
3
Calling 'virsh' from within a hook script - avoid deadlock?
...... [pid 14630] poll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=6, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN|POLLOUT}, {fd=24, events=POLLIN}], 9, 1927) = 1 ([{fd=18, revents=POLLOUT}]) [pid 14630] gettid() = 14630 [pid 14630] gettid() = 14630 [pid 14630] gettid() = 14630 [pid 14630] gettid() = 14630 [pid 14630] gettid() = 14630 [pid 14630] gettid() = 14630 [pid 14630] gettid()...
2009 Jul 14
4
error on solaris please help interlocked*functions
...> ../tools/makedep -C. -S.. -T.. -I/usr/include/freetype2 fnt2bdf.c fnt2fon.c make_ctests.c makedep.c relpath.c sfnt2fnt.c > `makedep' is up to date. > ../../tools/makedep -C. -S../.. -T../.. ffs.c fstatvfs.c futimes.c getopt.c getopt1.c getpagesize.c gettid.c interlocked.c isinf.c isnan.c lstat.c memcpy_unaligned.c memmove.c mkstemps.c poll.c pread.c pwrite.c readlink.c spawn.c statvfs.c strcasecmp.c strerror.c strncasecmp.c symlink.c usleep.c > cc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_...
2014 Apr 18
2
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
...a mutex, fast-path overhead is only a virtually > zero overhead (if implemented properly in the compiler) atomic consume load: > > const int maxshard = 4096; > uint64* shard[maxshard]; > atomic<int> shardmask; > > void inline inccounter(int idx) > { > int shardidx = gettid() & atomic_load(&shardmask, memory_order_consume); > shard[shardidx][idx]++; > } > > int pthread_create(...) > { > if (updateshardcount()) { > shardlock(); > if (updateshardcount()) { > int newcount = computeshardcount(); > for (int i = oldcount; i < newc...
2020 Mar 16
2
Enable Safe Stack for Baremetal?
Hello, I'm assessing the work required to enable Safe Stack for a bare metal target. Looking at compiler-rt/lib/safestack/, the current implementation depends on thread support for mutex & storing unsafe stack pointer. It also need several system calls: gettid, tgkill, mmap, munmap, mprotect. Our target doesn't has all underlying support it needs. My question is: what's the minimum requirement to port Safe Stack to bare metal? Thanks, Zhaoshi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.o...
2018 Jun 07
2
XRay TID mismatch when forking
...ld allow you to reproduce the problem, as well as the output I obtain from running that code, and that shows the problem described above. Below is a test file I wrote to show the bug: The parent process prints its own tid, calls fork ten times and for each fork, the child prints own TID using the gettid syscall. The syscall code is based on that of the sanitizer code – to make sure that I am using the same mechanism as xray to obtain the thread ID from the platform. ================= #include <stdio.h> #include <unistd.h> #include <stdint.h> #include <sys/syscall.h>...
2014 Apr 18
2
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
...ented properly in the compiler) atomic >>> consume load: >>> >>> const int maxshard = 4096; >>> uint64* shard[maxshard]; >>> atomic<int> shardmask; >>> >>> void inline inccounter(int idx) >>> { >>> int shardidx = gettid() & atomic_load(&shardmask, memory_order_consume); >>> shard[shardidx][idx]++; >>> } >>> >>> int pthread_create(...) >>> { >>> if (updateshardcount()) { >>> shardlock(); >>> if (updateshardcount()) { >>> int...
2009 Sep 11
2
WINE with 64-bit Support Build on Snow Leopard
...Wwrite-strings -Wpointer-arith -I/usr/X11/include -g -O2 -o getpagesize.o getpagesize.c gcc -m64 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -I/usr/X11/include -g -O2 -o gettid.o gettid.c gcc -m64 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -I/usr/X11/include -g -O2 -o interlocked.o interlocked.c {standard input}:87:Unknown pseudo-op: .cfi_adjus...
2009 May 21
0
1.4.24.1 -> 1.6.0.9: segfault
...= 0 gettimeofday({1242859458, 600093}, NULL) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0 gettid() = 921 futex(0x81abca4, 0x5 /* FUTEX_??? */, 1) = 1 futex(0x8195988, FUTEX_WAKE, 1) = 1 futex(0x81abca4, 0x5 /* FUTEX_??? */, 1) = 1 futex(0x8195988, FUTEX_WAKE, 1) = 1 .open("/usr/lib/asterisk/modules/app_talkdetect.so", O_RDONLY) = 12 read...
2009 Jan 26
4
Error while building wine 1.1.13 on Mac Os X
...OS X 10.5.6 using both the latest developer tools and fink packages (for libjpeg, libpng, libxml2, etc) it gives an error on "make && make depend" with the following message: -- rm -f libwine_port.a ar rc libwine_port.a ffs.o fstatvfs.o futimes.o getopt.o getopt1.o getpagesize.o gettid.o interlocked.o isinf.o isnan.o lstat.o memcpy_unaligned.o memmove.o mkstemps.o poll.o pread.o pwrite.o readlink.o spawn.o statvfs.o strcasecmp.o strerror.o strncasecmp.o symlink.o usleep.o ar: temporary file: Permission denied make[2]: *** [libwine_port.a] Error 1 make[1]: *** [port] Error 2 m...
2015 Jan 06
2
ubuntu virsh snapshot-create-as gives Error -22 while writing VM
...--- 17 cuckoo running $ apt-get install apparmor-utils $ aa-status $ aa-complain /usr/sbin/libvirtd $ aa-complain /etc/apparmor.d/libvirt/libvirt-bdfcd0d8-b032-6870- 79bf-c77e0a3c8590 $ strace virsh snapshot-create-as cuckoo cuckoo-snap1 "Cuckoo Snapshot" ... gettid() = 10168 futex(0x7f4726ab8240, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7f4726ab8240, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) futex(0x7f4726ab8240, FUTEX_WAKE_PRIVATE, 1) = 0 gettid() = 10168 Thanks -- Jon...
2014 Apr 18
4
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
On Apr 17, 2014, at 2:04 PM, Chandler Carruth <chandlerc at google.com> wrote: > On Thu, Apr 17, 2014 at 1:27 PM, Justin Bogner <mail at justinbogner.com> wrote: > Chandler Carruth <chandlerc at google.com> writes: > > if (thread-ID != main's thread-ID && shard_count < std::min(MAX, NUMBER_OF_CORES)) { > > shard_count = std::min(MAX,
2018 Mar 26
0
Interest in integrating a linux perf JITEventListener?
...tools/perf/Documentation/jit-interface.txt > +// > +//===----------------------------------------------------------------------===// > + > +#include "llvm/Config/config.h" > + > +#include <unistd.h> // for getpid(), sysconf() > +#include <syscall.h> // for gettid() */ > +#include <time.h> // clock_gettime(), time(), localtime_r() */ > +#include <sys/mman.h> // mmap() */ > +#include <sys/types.h> // getpid(), open() > +#include <sys/stat.h> // open() > +#include <fcntl.h> // open() > + > +#include "llvm...
2016 Dec 29
1
Interest in integrating a linux perf JITEventListener?
Having something like this available in tree would definitely be useful. For simplicity, why don't we start with support for the second style? This is the long term useful one and would be a good starting point for getting the code in tree. Can you give a pointer to the patch so that I can assess the rough complexity? If it's simple enough, I'd be happy to help get it reviewed
2017 Feb 02
0
Interest in integrating a linux perf JITEventListener?
Hi, On 2016-12-29 13:17:50 -0800, Philip Reames wrote: > Having something like this available in tree would definitely be > useful. Cool. > For simplicity, why don't we start with support for the second style? This > is the long term useful one and would be a good starting point for getting > the code in tree. Works for me. > Can you give a pointer to the patch so that
2018 Jun 28
2
XRay feature – pid reporting
I'm still somewhat unclear about what you mean by "metadata record entry at the beginning of the block". I understand that I can make a MetadataRecord that contains the pid/tid since a metadata record contains 16 bytes. However, I don't understand what do you mean by the "beginning of the block". Do you mean right after the file header? My understanding is that at
2007 Mar 12
2
Suffix or Operands invalid during AMD64 compile
...1]: `makedep' is up to date. make[1]: Leaving directory `/mnt/io/home/mfuhrer/sw/src/wine-0.9.32/tools' make[1]: Entering directory `/mnt/io/home/mfuhrer/sw/src/wine-0.9.32/libs' make[2]: Entering directory `/mnt/io/home/mfuhrer/sw/src/wine-0.9.32 /libs/port' make[2]: Warning: File `gettid.o' has modification time 0.037 s in the future gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -D__i386__ -o interlocked.o interlocked.c {standard input}: Ass...
2019 Mar 08
1
Dovecot v2.3.5 released
On 7.3.2019 23.37, A. Schulze via dovecot wrote: > > Am 07.03.19 um 17:33 schrieb Aki Tuomi via dovecot: > >>> test-http-client-errors.c:2989: Assert failed: FALSE >>> connection timed out ................................................. : FAILED > Hello Aki, > >> Are you running with valgrind or on really slow system? > I'm not aware my buildsystem
2011 Jan 07
0
Wine release 1.3.11
...--------- Changes since 1.3.10: Adam Martinson (1): configure: Fix OpenCL includes on systems with only CL/cl.h. Alexandre Julliard (58): ntdll: Use the getdents64 system call on all Linux platforms. ntdll: Use the futex system calls on all Linux platforms. ntdll: Use the gettid system call on all Linux platforms. server: Use the tgkill system call on all Linux platforms. configure: Get rid of the replacement function for gettid. configure: Create a wow64 symlink for the preloader too. winetest: Refuse to run if the WoW64 side of the registry is mis...