Displaying 7 results from an estimated 7 matches for "your_module".
2012 Apr 16
3
[LLVMdev] How to compile this linux-driver like programme into .bc file?
...e while I can use the clang command "-O3-emit-llvm" to generate a corresponding .bc file so the pass can be run on that.
>
> I guess you can use something like (I am not SURE if Clang support those GCC
>flags entirely, try it yourself),
>
>$ clang -O2 -DMODULE -D__KERNEL__ YOUR_MODULE.c \
> -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
> -isystem /lib/modules/`uname -r`/build/include \
> -emit-llvm -o YOUR_MODULE.bc
>
>Regards,
>chenwj
>
>--
>Wei-Ren Chen (陳韋任)
>Computer Systems Lab, Institute of Information Science,
>Academia Sinica, T...
2012 Apr 18
0
[LLVMdev] How to compile this linux-driver like programme into .bc file?
...;asm/processor.h" is not fount. Then I included that file
using -I option and some other files were said not found! It's like I opened a can of worms...
I can still continue to include the file that is said not found. But is it the right way ?
Thank you!
clang -O2 -DMODULE -D__KERNEL__ YOUR_MODULE.c \
>> -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
>> -I /lib/modules/`uname -r`/build/include \
>> -emit-llvm -o YOUR_MODULE.bc
--
祝好!
甄凯
------------------------------------------------------------------------------------------------------
2012-04-1...
2012 Apr 18
1
[LLVMdev] How to compile this linux-driver like programme into .bc file?
...;asm/processor.h" is not fount. Then I included that file
using -I option and some other files were said not found! It's like I opened a can of worms...
I can still continue to include the file that is said not found. But is it the right way ?
Thank you!
clang -O2 -DMODULE -D__KERNEL__ YOUR_MODULE.c \
>> -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
>> -I /lib/modules/`uname -r`/build/include \
>> -emit-llvm -o YOUR_MODULE.bc
--
祝好!
甄凯
------------------------------------------------------------------------------------------------------
2012-04-1...
2012 Apr 16
0
[LLVMdev] How to compile this linux-driver like programme into .bc file?
...l generate a .ko file while I can use the clang command "-O3-emit-llvm" to generate a corresponding .bc file so the pass can be run on that.
I guess you can use something like (I am not SURE if Clang support those GCC
flags entirely, try it yourself),
$ clang -O2 -DMODULE -D__KERNEL__ YOUR_MODULE.c \
-W -Wall -Wstrict-prototypes -Wmissing-prototypes \
-isystem /lib/modules/`uname -r`/build/include \
-emit-llvm -o YOUR_MODULE.bc
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Hom...
2012 Apr 16
2
[LLVMdev] How to compile this linux-driver like programme into .bc file?
Thank you, Chen!
The thing is that I know the Makefile to complete that task. But what I want to know the clang command that can do that. Since the makefile will generate a .ko file while I can use the clang command "-O3-emit-llvm" to generate a corresponding .bc file so the pass can be run on that.
Any help?
--
祝好!
甄凯
2012 Oct 26
12
Have Class Only Perform Actions When There Is Work To Do (i.e. Making Them Idempotent)
Howdy. I feel like I am missing something really simply with regards to the
way that Puppet works and I am wondering if someone can point me in the
write direction.
I have written a class that downloads, uncompresses, compiles, and installs
Python from source. So far so good. The problem is that it only needs to do
this once, when Python is not already in place (or some other custom
2012 Sep 30
22
in-module data with hiera
...me
ideas I had but put off implementing because it was too hard to install
and distribute these extensions.
I propose extending the module layout with a data/ directory that can go
into each module and in this data directory would live a hiera config
file (optionally) and module specific data:
your_module
├── data
│ ├── hiera.json
│ └── osfamily
│ ├── Debian.json
│ └── RedHat.json
└── manifests
└── init.pp
Here the data/hiera.json is optional and specifies a hierarchy that the
module author chooses and is unique to the specific backend.
The default contents...