Displaying 3 results from an estimated 3 matches for "internal_syscall".
2014 Jun 10
4
[LLVMdev] use of undeclared identifier '__NR_*' error while building clang
...#39;
COMPILE: clang_linux/san-i386/i386:
/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:123:27:
error: use of undeclared identifier '__NR_open'
return internal_syscall(SYSCALL(open), (uptr)filename, flags);
^
/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc:17:24:
note: expanded from macro 'SYSCALL'
# define SYSCALL(name) __NR_ ## name
^
<scratch space...
2018 Jun 07
2
XRay TID mismatch when forking
...at 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>
//taken from sanitizer
#define SYSCALL(name) __NR_ ## name
static uintptr_t internal_syscall(uint64_t nr) {
uint64_t retval;
asm volatile("syscall" : "=a"(retval) : "a"(nr) : "rcx", "r11",
"memory", "cc");
return retval;
}
/////////////
int main()
{
printf("\nTID of...
2016 Jul 13
2
[LLVM/Clang v3.8.1] Missing Git branches/tags and source-tarballs?
On Wed, Jul 13, 2016 at 04:48:51PM +0200, Sedat Dilek via llvm-dev wrote:
> [ CCed all people who were involved in this thread ]
>
> Hi Tom,
>
> personally, I am interested to test the prebuilt-toolchains for
> Ubuntu/xenial alias 16.04 LTS and Debian/Jessie v8.5.0 AMD64.
> The available toolchains are incomplete and thus useless.
>
> Just as a fact: There is still no