public inbox for xdp-newbies@vger.kernel.org
 help / color / mirror / Atom feed
* RPM for the kernel samples?
@ 2021-11-02 21:36 Jesse Brandeburg
  2021-11-02 21:54 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 7+ messages in thread
From: Jesse Brandeburg @ 2021-11-02 21:36 UTC (permalink / raw)
  To: xdp-newbies@vger.kernel.org

Hi there, does anyone here know if the samples/bpf directory from the 
kernel is built as a part of an RPM from fedora or RHEL/Centos?

In my searching I've not found anything.

I do know:
1) other directories/tooling in the kernel is already packaged as 
standalone RPMs
	a) see kernel-tools package which packages cpupower/turbostat
	b) the spec file would be substantially the same as the above
2) The tools/bpf directory already seems built as an RPM.
3) This seems very possible.

Does anyone know why I couldn't / shouldn't submit a request to Fedora 
to do this? I might even get the .spec file working myself just to prove 
the idea and give a sample?

Thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RPM for the kernel samples?
  2021-11-02 21:36 RPM for the kernel samples? Jesse Brandeburg
@ 2021-11-02 21:54 ` Toke Høiland-Jørgensen
  2021-11-02 22:47   ` Jesse Brandeburg
  0 siblings, 1 reply; 7+ messages in thread
From: Toke Høiland-Jørgensen @ 2021-11-02 21:54 UTC (permalink / raw)
  To: Jesse Brandeburg, xdp-newbies@vger.kernel.org

Jesse Brandeburg <jesse.brandeburg@intel.com> writes:

> Hi there, does anyone here know if the samples/bpf directory from the 
> kernel is built as a part of an RPM from fedora or RHEL/Centos?

It's certainly possible to build it from the existing kernel .spec file:

https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/kernel.spec#_1046

I know we have this available as an internal package for RHEL, but I
don't think we ship it anywhere. And it seems like the flag is turned
off for Fedora as well.

What do you need it for? Opening an issue asking for it to be built for
Fedora might be a good start; feel free to Cc me on that as well :)

-Toke


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RPM for the kernel samples?
  2021-11-02 21:54 ` Toke Høiland-Jørgensen
@ 2021-11-02 22:47   ` Jesse Brandeburg
  2021-11-02 23:33     ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 7+ messages in thread
From: Jesse Brandeburg @ 2021-11-02 22:47 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen, xdp-newbies@vger.kernel.org

On 11/2/2021 2:54 PM, Toke Høiland-Jørgensen wrote:
> Jesse Brandeburg <jesse.brandeburg@intel.com> writes:
> 
>> Hi there, does anyone here know if the samples/bpf directory from the
>> kernel is built as a part of an RPM from fedora or RHEL/Centos?
> 
> It's certainly possible to build it from the existing kernel .spec file:
> 
> https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/kernel.spec#_1046
> 
> I know we have this available as an internal package for RHEL, but I
> don't think we ship it anywhere. And it seems like the flag is turned
> off for Fedora as well.
> 
> What do you need it for? Opening an issue asking for it to be built for
> Fedora might be a good start; feel free to Cc me on that as well :)

Hi Toke! thanks!

I'm tired of fighting tooth and nail to get the samples compiled on my 
own system whenever I need them. I'd much rather there just be an 
already made set of executables.

We use them for testing our driver's functionality for XDP, among other 
things.

I'll file a bugzilla.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RPM for the kernel samples?
  2021-11-02 22:47   ` Jesse Brandeburg
@ 2021-11-02 23:33     ` Toke Høiland-Jørgensen
  2021-11-02 23:50       ` Jesse Brandeburg
  0 siblings, 1 reply; 7+ messages in thread
From: Toke Høiland-Jørgensen @ 2021-11-02 23:33 UTC (permalink / raw)
  To: Jesse Brandeburg, xdp-newbies@vger.kernel.org

Jesse Brandeburg <jesse.brandeburg@intel.com> writes:

> On 11/2/2021 2:54 PM, Toke Høiland-Jørgensen wrote:
>> Jesse Brandeburg <jesse.brandeburg@intel.com> writes:
>> 
>>> Hi there, does anyone here know if the samples/bpf directory from the
>>> kernel is built as a part of an RPM from fedora or RHEL/Centos?
>> 
>> It's certainly possible to build it from the existing kernel .spec file:
>> 
>> https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/kernel.spec#_1046
>> 
>> I know we have this available as an internal package for RHEL, but I
>> don't think we ship it anywhere. And it seems like the flag is turned
>> off for Fedora as well.
>> 
>> What do you need it for? Opening an issue asking for it to be built for
>> Fedora might be a good start; feel free to Cc me on that as well :)
>
> Hi Toke! thanks!
>
> I'm tired of fighting tooth and nail to get the samples compiled on my 
> own system whenever I need them. I'd much rather there just be an 
> already made set of executables.

Right, makes sense. FYI we were discussing moving (some of?) the XDP
samples to xdp-tools[0].

> We use them for testing our driver's functionality for XDP, among
> other things.

I don't suppose you have anyone interested in working on an actual XDP
test suite of some kind, would you? Like a set of "compliance tests"
that lives in-tree and that any driver author can run to test their
driver's XDP implementation?

> I'll file a bugzilla.

Great!

-Toke

[0] https://lore.kernel.org/r/CAJ8uoz1GP4M71E-PNScndfeTbcCG2OUg+wcoO4ZaJF5UTBiXCQ@mail.gmail.com 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RPM for the kernel samples?
  2021-11-02 23:33     ` Toke Høiland-Jørgensen
@ 2021-11-02 23:50       ` Jesse Brandeburg
  2021-11-02 23:53         ` Jesse Brandeburg
  0 siblings, 1 reply; 7+ messages in thread
From: Jesse Brandeburg @ 2021-11-02 23:50 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen, xdp-newbies@vger.kernel.org

On 11/2/2021 4:33 PM, Toke Høiland-Jørgensen wrote:
> Jesse Brandeburg <jesse.brandeburg@intel.com> writes:
> 
>> On 11/2/2021 2:54 PM, Toke Høiland-Jørgensen wrote:
>>> Jesse Brandeburg <jesse.brandeburg@intel.com> writes:
>>>
>>>> Hi there, does anyone here know if the samples/bpf directory from the
>>>> kernel is built as a part of an RPM from fedora or RHEL/Centos?
>>>
>>> It's certainly possible to build it from the existing kernel .spec file:
>>>
>>> https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/kernel.spec#_1046
>>>
>>> I know we have this available as an internal package for RHEL, but I
>>> don't think we ship it anywhere. And it seems like the flag is turned
>>> off for Fedora as well.
>>>
>>> What do you need it for? Opening an issue asking for it to be built for
>>> Fedora might be a good start; feel free to Cc me on that as well :)
>>
>> Hi Toke! thanks!
>>
>> I'm tired of fighting tooth and nail to get the samples compiled on my
>> own system whenever I need them. I'd much rather there just be an
>> already made set of executables.
> 
> Right, makes sense. FYI we were discussing moving (some of?) the XDP
> samples to xdp-tools[0].

Not a bad idea, as long as compilation and use gets easier.

> 
>> We use them for testing our driver's functionality for XDP, among
>> other things.
> 
> I don't suppose you have anyone interested in working on an actual XDP
> test suite of some kind, would you? Like a set of "compliance tests"
> that lives in-tree and that any driver author can run to test their
> driver's XDP implementation?

Good idea! I'll ask around ;-)

> 
>> I'll file a bugzilla.
> 
> Great!
> 
> -Toke
> 
> [0] https://lore.kernel.org/r/CAJ8uoz1GP4M71E-PNScndfeTbcCG2OUg+wcoO4ZaJF5UTBiXCQ@mail.gmail.com
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RPM for the kernel samples?
  2021-11-02 23:50       ` Jesse Brandeburg
@ 2021-11-02 23:53         ` Jesse Brandeburg
  2021-11-03 10:13           ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 7+ messages in thread
From: Jesse Brandeburg @ 2021-11-02 23:53 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen, xdp-newbies@vger.kernel.org



>>> I'll file a bugzilla.

Filed as https://bugzilla.redhat.com/show_bug.cgi?id=2019616

>>
>> Great!

I tried to add you but, toke@redhat.com is not a valid bugzilla email 
address?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RPM for the kernel samples?
  2021-11-02 23:53         ` Jesse Brandeburg
@ 2021-11-03 10:13           ` Toke Høiland-Jørgensen
  0 siblings, 0 replies; 7+ messages in thread
From: Toke Høiland-Jørgensen @ 2021-11-03 10:13 UTC (permalink / raw)
  To: Jesse Brandeburg, xdp-newbies@vger.kernel.org

Jesse Brandeburg <jesse.brandeburg@intel.com> writes:

>>>> I'll file a bugzilla.
>
> Filed as https://bugzilla.redhat.com/show_bug.cgi?id=2019616

Cool, thanks!

>>>
>>> Great!
>
> I tried to add you but, toke@redhat.com is not a valid bugzilla email 
> address?

No, that's my prettified alias; added myself now :)

-Toke


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-03 10:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-02 21:36 RPM for the kernel samples? Jesse Brandeburg
2021-11-02 21:54 ` Toke Høiland-Jørgensen
2021-11-02 22:47   ` Jesse Brandeburg
2021-11-02 23:33     ` Toke Høiland-Jørgensen
2021-11-02 23:50       ` Jesse Brandeburg
2021-11-02 23:53         ` Jesse Brandeburg
2021-11-03 10:13           ` Toke Høiland-Jørgensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox