similar to: [LLVMdev] compile linux kernel

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] compile linux kernel"

2008 Sep 27
2
[LLVMdev] compile linux kernel
Thanks for the help. I've a couple of questions though: How does LLVM deal with inline assembly? I'm trying to compile kernel and I get this error probably because LLVM is not able to handle inline assembly. I'm using LLVM-2.3 code snippet from "arch/x86_64/kernel/asm-offsets.c" .... #define DEFINE(sym, val) \ asm volatile("\n->" #sym " %0 "
2008 Sep 28
0
[LLVMdev] compile linux kernel
On Sep 27, 2008, at 4:34 PM, Ashish Bijlani wrote: > Thanks for the help. I've a couple of questions though: > > How does LLVM deal with inline assembly? It's been implemented piece by piece on an as-needed basis. At this point most of the things people actually use should work. llvm-gcc has seen the Linux kernel, so most usages in there ought to work. The symptoms here
2008 Sep 27
0
[LLVMdev] compile linux kernel
On Fri, Sep 26, 2008 at 9:19 PM, Ashish Bijlani <ashish.bijlani at gmail.com> wrote: > Hi, > > I'm trying to compile linux-2.6.23.16 with llvm-2.3. Is it at all > possible? Yes, but it requires significant hacking, and the result for 2.6 is a mostly bitcode kernel with a few userspace shared libraries linked in as objcode (yes, the kernel builds .so files and includes them
2008 Sep 28
3
[LLVMdev] compile linux kernel
Thanks. I actually checked the IR code generated, it seems inline assembly is being handled correctly. The preprocessing is also being done correctly. Here is the asm-offsets.i file snippet.. ... builtin_offsetof(struct crypto_tfm,__crt_ctx))); asm volatile("\n->" : : ); asm volatile("\n->" "__NR_syscall_max" " %0 " "sizeof(syscalls) - 1"
2008 Sep 27
2
[LLVMdev] compile linux kernel
I plan to use virtualization infrastructure to JIT VM Kernel Code. Michael Engel has done that in the past to have dynamic aspect in the Kernel: http://llvm.org/pubs/2005-03-14-ACP4IS-AspectsKernel.pdf He used L4 based Hypervisor and Virtual Machines. Can this not be done or am I missing something? -Ashish On Sat, Sep 27, 2008 at 3:13 AM, Török Edwin <edwintorok at gmail.com> wrote: >
2008 Sep 27
0
[LLVMdev] compile linux kernel
On 2008-09-27 18:29, Ashish Bijlani wrote: > I plan to use virtualization infrastructure to JIT VM Kernel Code. > Michael Engel has done that in the past to have dynamic aspect in the > Kernel: http://llvm.org/pubs/2005-03-14-ACP4IS-AspectsKernel.pdf > > He used L4 based Hypervisor and Virtual Machines. Can this not be done > or am I missing something? > I think you'll
2008 Oct 25
5
sse, mmx support for hvm guests
Hi, I''ve a quad-core x86_64 machine (Intel Xeon), with sse/mmx support. However, I want to disable sse/mmx support from HVM guests. How can I do this? Also, is it reasonable to expect illegal instruction fault in non-root VMX mode if a guest VM runs an application with sse/mmx instructions? Thanks, Ashish _______________________________________________ Xen-devel mailing list
2013 Jun 01
2
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Greetings, I am trying to compile a linux kernel module (currently a small part of the gpu driver) into the bitcode ".bc" format so that I can run a pass on it using the "opt" command. This pass will count the number of times copy_to/from_user() is invoked. Compiling the gnu driver kernel modules works with clang as a front end. However, I am unable to get the
2008 Sep 28
3
[LLVMdev] compile linux kernel
does that mean .o generated with gcc (.c -> .s and .s -> .o) will not contain llvm ir? i meant, final kernel bitcode ir arch independent and can be JIT with any arch-specific backend. Is it not the case? thanks, ashish On Sat, Sep 27, 2008 at 10:43 PM, Andrew Lenharth <andrewl at lenharth.org> wrote: > On Sat, Sep 27, 2008 at 8:08 PM, Ashish Bijlani > <ashish.bijlani at
2013 Jun 01
0
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Hi Kevin, On 01/06/13 09:59, Kevin Boos wrote: > Greetings, > > I am trying to compile a linux kernel module (currently a small part of the gpu driver) into the bitcode ".bc" format so that I can run a pass on it using the "opt" command. This pass will count the number of times copy_to/from_user() is invoked. > > Compiling the gnu driver kernel modules works
2008 Sep 27
0
[LLVMdev] compile linux kernel
On 2008-09-27 05:19, Ashish Bijlani wrote: > Hi, > > I'm trying to compile linux-2.6.23.16 with llvm-2.3. Is it at all > possible? I get "Not an ELF" error. I pass "-emit-llvm" option to spit > LLVM IR, which can be JITed at runtime > > If you want to build a kernel you can't use the JIT anyway, so why not just build native code? Best regards,
2013 Jun 08
1
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Greatings, I am encountering the same issue with Kevin. Does anyone know how to compile the linux kernel to .bc file? Is there any oneline guide for this? Thanks!~ Bests,Ping > Date: Sat, 1 Jun 2013 20:15:56 +0200 > From: baldrick at free.fr > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Compile Linux Kernel module into LLVM bitcode > > Hi Kevin, >
2008 Sep 28
0
[LLVMdev] compile linux kernel
No, this is not the case. Just because you compile something to LLVM IR does not make the thing you compiled work on every architecture. You may even be able to retarget it to any architecture (it depends), but this in no way means the result will *actually work*. The LLVM IR generated by llvm-gcc is very architecture dependent. Theoretically you could make a C compiler that was mostly C
2007 Nov 29
3
lustre osd implementation
hello, does lustre support OSD T10 standard? Can it be used with IBM''s/Intel''s OSD initiator and target? Thanks, Ashish -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20071128/c2de31a6/attachment-0002.html
2008 Sep 28
3
[LLVMdev] llvm-ld hangs
Hi, I'm trying to compile UML with LLVM. However, LLVM-LD hangs whiile linking modules. It's consuming 99% of the CPU llvm-ld -v -r -o kernel/built-in.o kernel/sched.o kernel/fork.o kernel/exec_domain.o kernel/panic.o kernel/printk.o kernel/profile.o kernel/exit.o kernel/itimer.o kernel/time.o kernel/softirq.o kernel/resource.o kernel/sysctl.o kernel/capability.o kernel/ptrace.o
2010 Jun 01
1
strange pvops problem
I compiled the pvops kernel like this : [root@localhost xen-4.0.0]# ls buildconfigs config Config.mk.orig dist extras install.sh Makefile README tools xen build-linux-2.6-pvops_x86_32 Config.mk COPYING docs file linux-2.6-pvops.git messages stubdom unmodified_drivers [root@localhost build-linux-2.6-pvops_x86_32]# make -j2 bzImage
2010 Jun 01
1
strange pvops problem
I compiled the pvops kernel like this : [root@localhost xen-4.0.0]# ls buildconfigs config Config.mk.orig dist extras install.sh Makefile README tools xen build-linux-2.6-pvops_x86_32 Config.mk COPYING docs file linux-2.6-pvops.git messages stubdom unmodified_drivers [root@localhost build-linux-2.6-pvops_x86_32]# make -j2 bzImage
2008 Sep 28
0
[LLVMdev] compile linux kernel
On Sat, Sep 27, 2008 at 8:08 PM, Ashish Bijlani <ashish.bijlani at gmail.com> wrote: > If I use GCC to generate asm-offsets.s file, then the build system go > ahead but fails when it generates .so files as Andrew pointed out. You have to generate this with gcc. .c -> .s and .s -> .o need gcc, .c -> .o can use llvm-gcc. The combination has to be fixed up in final linking.
2008 Sep 28
1
[LLVMdev] linker script
Hi, I'm trying to compile linux kernel with llvm to generate llvm ir (bitcode). It seems like llvm-ld doesn't accept any linker scripts. How do I deal with vmlinux.lds in such a case? How did people who have compiled linux kernel with llvm deal with this in the past? Thanks, Ashish
2010 Feb 11
6
tapdisk2 segfaults with xen-unstable+linux-2.6-pvops
Hi, I''m trying to run guest pv vm on my machine running xen-unstable (xen-4.0.0-rc3.pre + linux-2.6-pvops). However, I get blktap error: " sudo xm create -c xmexample Using config file "./xmexample". Error: Failed to create device. stdout: unrecognized child response stderr: Check that target "/home/ashish/xen/hd.img" exists and that blktap2 driver