Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] Unable to generate obj file using llc for bpf"
2015 Aug 03
2
[LLVMdev] Unable to generate obj file using llc for bpf
Hi Alexei,
I haven't tried to run code yet. The clang frontend can generate machine
code for bpf but llc does not do the job.
When i use : llc -march bpf -filetype=obj arith.bc
It has this error message:
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"), function cast, file
2015 Jul 04
3
[LLVMdev] Declare multiple data type for a register class in tblegen
Oh, they have selection details in the end. Let me check that first...
On Sat, Jul 4, 2015 at 4:05 PM Xiaochu Liu <xiaochu1122 at gmail.com> wrote:
> Hi Matt,
>
> I tried debug-only=isel and have some more informations.
> The steps before 'Legalized selection'( excluding it) all use v2i32 load.
> At the step of 'Legalized selection', it replaced one v2i32
2016 Jun 16
2
[iovisor-dev] [PATCH, BPF 1/5] BPF: Use a provisional ELF e_machine value
On 06/16/2016 06:57 PM, Richard Henderson via iovisor-dev wrote:
> On 06/15/2016 10:14 PM, Alexei Starovoitov wrote:
>> On Wed, Jun 15, 2016 at 2:37 PM, Richard Henderson via iovisor-dev
>> <iovisor-dev at lists.iovisor.org> wrote:
>>> This same value for EM_BPF is being propagated to glibc,
>>> elfutils, and binutils.
>>
>> great!
>> Can
2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
On 8/4/15 11:51 PM, Wangnan (F) wrote:
> void bpf_store_half(void *skb, int off, int val)
> asm("llvm.bpf.store.half");
> int func()
> {
> bpf_store_half(0, 0, 0);
> return 0;
> }
>
> Compiled with:
>
> $ clang -g -target bpf -O2 -S -c test.c
>
> And get this:
>
> .text
> .globl func
> .align
2016 Jun 16
2
[iovisor-dev] [PATCH, BPF 1/5] BPF: Use a provisional ELF e_machine value
On Wed, Jun 15, 2016 at 2:37 PM, Richard Henderson via iovisor-dev
<iovisor-dev at lists.iovisor.org> wrote:
> This same value for EM_BPF is being propagated to glibc,
> elfutils, and binutils.
great!
Can you share the link to glibc and the other patches?
> diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
> index 352fd8a..fb8ff71 100644
> ---
2015 Aug 06
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
On Wed, Aug 05, 2015 at 04:28:13PM +0800, Wangnan (F) wrote:
>
> It doesn't work for me at first since in my llvm there's only
> llvm.bpf.load.*.
>
> I think llvm.bpf.store.* belone to some patches you haven't posted yet?
nope. only loads have special instructions ld_abs/ld_ind
which are represented by these intrinsics.
stores, so far, are done via single
2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
Hi, Alexei
On 2015/7/30 1:13, Alexei Starovoitov wrote:
> On 7/29/15 2:38 AM, He Kuang wrote:
>> Hi, Alexei
>>
>> On 2015/7/28 10:18, Alexei Starovoitov wrote:
>>> On 7/25/15 3:04 AM, He Kuang wrote:
>>>> I noticed that for 64-bit elf format, the reloc sections have
>>>> 'Addend' in the entry, but there's no 'Addend' info
2015 Jul 03
2
[LLVMdev] Declare multiple data type for a register class in tblegen
Thanks. I'm gonna try tomorrow and let you know.
On Thu, Jul 2, 2015 at 6:51 PM Matt Arsenault <Matthew.Arsenault at amd.com>
wrote:
> On 07/02/2015 06:41 PM, Xiaochu Liu wrote:
> > Hi Matt,
> >
> > I did call addRegisterClass in TargetLowering for all the possible
> > types in the register. And for typecasting instructions (i32 to i64),
> > it works.
2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
Send again since llvmdev is moved to llvm-dev at lists.llvm.org
On 2015/8/5 9:58, Wangnan (F) wrote:
>
>
> On 2015/8/4 17:01, Wangnan (F) wrote:
>> For people who in llvmdev:
>>
>> This mail is belong to a thread in linux kernel mailing list, the
>> first message
>> can be retrived from:
>>
>> http://lkml.kernel.org/r/55B1535E.8090406 at
llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
2015 Aug 12
2
llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
On 2015/8/4 3:44, Alexei Starovoitov wrote:
[SNIP]
>> I'll post 2 LLVM patches by replying this mail. Please have a look and
>> help me
>> send them to LLVM if you think my code is correct.
>
>
[SNIP]
> patch 2:
> do we really need to hack clang?
> Can you just define a function that aliases to intrinsic,
> like we do for ld_abs/ld_ind ?
> void
2017 Dec 13
0
[bpf-next V1-RFC PATCH 11/14] virtio_net: setup xdp_rxq_info
The virtio_net driver doesn't dynamically change the RX-ring queue
layout and backing pages, but instead reject XDP setup if all the
conditions for XDP is not meet. Thus, the xdp_rxq_info also remains
fairly static. This allow us to simply add the init+reg/unreg to
net_device open/close functions.
Driver hook points for xdp_rxq_info:
* init+reg: virtnet_open
* unreg : virtnet_close
Cc:
2019 Jul 24
0
virtio BPF offers incorrect packet length
Hi,
I suspect that the virtio network driver calls some skb BPF programs with
skb->data_end - skb->data != skb->len, but only for forwarded packets.
For instance, the attached sched_cls tc program prints skb->data,
skb->data_end and skb->len for each packet:
<idle>-0 [000] ..s. 491.561727: 0: data: 3110080576
data_end: 3110080704 len: 262
2020 Feb 15
0
Re: USB-hotplugging fails with "failed to load cgroup BPF prog: Operation not permitted" on cgroups v2
Hi,
Quoting Pol Van Aubel (2020-01-21 23:41:48)
> Hi,
>
> Quoting Pavel Hrdina (2020-01-21 12:53:49)
> > Thanks for the logs, but it did not help to figure out where the issue
> > is. I was hoping to see some error output from the syscall but the line
> > that should contain it is empty:
> >
> > 2020-01-20 19:47:15.589+0000: 8579: debug :
2017 Dec 13
0
[bpf-next V1-RFC PATCH 11/14] virtio_net: setup xdp_rxq_info
The virtio_net driver doesn't dynamically change the RX-ring queue
layout and backing pages, but instead reject XDP setup if all the
conditions for XDP is not meet. Thus, the xdp_rxq_info also remains
fairly static. This allow us to simply add the init+reg/unreg to
net_device open/close functions.
Driver hook points for xdp_rxq_info:
* init+reg: virtnet_open
* unreg : virtnet_close
Cc:
2015 Jun 09
2
[LLVMdev] Make BPF backend non-experimental?
On 5 June 2015 at 19:46, Eric Christopher <echristo at gmail.com> wrote:
> 1) Alexei has been very active on the port, fixing problems unprompted
> 2) As one of the people who've had to had on it in the last few months it
> wasn't an issue to keep up to date with the other ports.
+1!
cheers,
--renato
2015 Sep 10
2
how to link clang generated obj targeting BPF
Dear there,
I was trying to use clang to cross compile executable directly on my mac to
bpf ISA:
clang -target bpf-linux-gnu aaa.c
But I guess maybe the linker does not support BPF? (with -c clang can
generate unlinked objs)
Unexpected arch
UNREACHABLE executed at
llvm/tools/clang/lib/Driver/Tools.cpp:8113
Should I use other linkers to link clang generated BPF objs?
Thanks,
Xiaochu
2003 Jun 04
1
Problem with large numbers of bpf devices
A STABLE (not updated since 12/13/02) system shows very strange behavior
for devices with a minor mode greater than 256. tcpdump does not work
reliably and ls is, uh, "strange", using hex for the minor mode.
crw------- 1 root wheel 23, 252 Apr 11 14:29 bpf252
crw------- 1 root wheel 23, 253 Apr 11 14:29 bpf253
crw------- 1 root wheel 23, 254 Apr 11 14:29 bpf254
2021 Dec 29
1
[Bridge] [PATCH bpf-next v2] net: don't include filter.h from net/sock.h
On Tue, 28 Dec 2021 17:33:39 -0800 Florian Fainelli wrote:
> It would be nice if we used the number of files rebuilt because of a
> header file change as another metric that the kernel is evaluated with
> from release to release (or even on a commit by commit basis). Food for
> thought.
Maybe Andy has some thoughts, he has been working on dropping
unnecessary includes of kernel.h,
2021 Dec 29
1
[Bridge] [PATCH bpf-next v2] net: don't include filter.h from net/sock.h
On Tue, 28 Dec 2021 17:33:39 -0800 Florian Fainelli wrote:
> It would be nice if we used the number of files rebuilt because of a
> header file change as another metric that the kernel is evaluated with
> from release to release (or even on a commit by commit basis). Food for
> thought.
Maybe Andy has some thoughts, he has been working on dropping
unnecessary includes of kernel.h,
2023 Oct 15
0
[RFC PATCH v2 1/7] bpf: Introduce BPF_PROG_TYPE_VNET_HASH
On Sun, Oct 15, 2023 at 7:17?AM Akihiko Odaki <akihiko.odaki at daynix.com> wrote:
>
> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
> index 0448700890f7..298634556fab 100644
> --- a/include/uapi/linux/bpf.h
> +++ b/include/uapi/linux/bpf.h
> @@ -988,6 +988,7 @@ enum bpf_prog_type {
> BPF_PROG_TYPE_SK_LOOKUP,
> BPF_PROG_TYPE_SYSCALL,