* [Report] rtla: Failed to set runtime and/or period
@ 2024-09-12 13:58 Muhammad Usama Anjum
2024-09-13 13:47 ` Daniel Wagner
0 siblings, 1 reply; 3+ messages in thread
From: Muhammad Usama Anjum @ 2024-09-12 13:58 UTC (permalink / raw)
To: Daniel Wagner, Steven Rostedt, linux-trace-kernel, linux-kernel,
Daniel Bristot de Oliveira
Cc: Usama.Anjum, kernel, gustavo.padovan, helen.koike
Hi,
We are running rt-tests on KernelCI. I'm looking at failures and I found
out that rtla osnoise and rtla timerlat are failing. We have just
enabled these tests and they are failing from day one.
The first thing I fixed in my local setup is to sync the version of rtla
with that of the running kernel from the source. It resolves the Tracer
timerlat not found!" error as we had installed the older rtla package
from Debian on CI. I'll update it. Is the version of rtla dependent on
the exact kernel version or any recent rtla version is acceptable?
The other errors are persistent:
➜ sudo ./rtla osnoise hist -r 900000
Failed to set runtime and/or period
Could not apply config
I thought maybe some argument are wrong. I ran the example from man page:
➜ sudo ./rtla osnoise hist -P F:1 -c 0-11 -r 900000 -d 1M -b 10 -E 25
Failed to apply CPUs config
Could not apply config
Is there some configuration which is missing for running rtla? Please
let me know.
--
BR,
Muhammad Usama Anjum
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Report] rtla: Failed to set runtime and/or period
2024-09-12 13:58 [Report] rtla: Failed to set runtime and/or period Muhammad Usama Anjum
@ 2024-09-13 13:47 ` Daniel Wagner
2024-09-16 5:33 ` Muhammad Usama Anjum
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Wagner @ 2024-09-13 13:47 UTC (permalink / raw)
To: Muhammad Usama Anjum
Cc: Steven Rostedt, linux-trace-kernel, linux-kernel,
Daniel Bristot de Oliveira, kernel, gustavo.padovan, helen.koike
On Thu, Sep 12, 2024 at 06:58:02PM GMT, Muhammad Usama Anjum wrote:
> We are running rt-tests on KernelCI. I'm looking at failures and I found
> out that rtla osnoise and rtla timerlat are failing. We have just
> enabled these tests and they are failing from day one.
Thanks a lot on working on this!
> The first thing I fixed in my local setup is to sync the version of rtla
> with that of the running kernel from the source. It resolves the Tracer
> timerlat not found!" error as we had installed the older rtla package
> from Debian on CI.
There is some dependency between kernel version and the rtla tool suite.
I suppose there is a window of version which you can differ but I
suppose the Debian packaged version is way too old for recent kernels.
> I'll update it. Is the version of rtla dependent on
> the exact kernel version or any recent rtla version is acceptable?
I have to figure this out. It could be that we need to build/provide
matching rtla versions to the kernel. In theory the API should be stable
etc but I suspect the APIs got broken (not on purpose) in the early
days. Anyway, we have to figure this out as we can't ask Daniel sadly.
> The other errors are persistent:
>
> ➜ sudo ./rtla osnoise hist -r 900000
> Failed to set runtime and/or period
> Could not apply config
This works on my Tumbleweed kernel (pretty much a vanila kernel)
6.10.9-1-default with the matching rtla version 6.10.9.
What version do you use?
> I thought maybe some argument are wrong. I ran the example from man page:
>
> ➜ sudo ./rtla osnoise hist -P F:1 -c 0-11 -r 900000 -d 1M -b 10 -E 25
> Failed to apply CPUs config
> Could not apply config
Same here. This works on my local kernel.
> Is there some configuration which is missing for running rtla? Please
> let me know.
Are these
CONFIG_OSNOISE_TRACER
CONFIG_TIMERLAT_TRACER
config option enabled in your kernel?
Thanks,
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Report] rtla: Failed to set runtime and/or period
2024-09-13 13:47 ` Daniel Wagner
@ 2024-09-16 5:33 ` Muhammad Usama Anjum
0 siblings, 0 replies; 3+ messages in thread
From: Muhammad Usama Anjum @ 2024-09-16 5:33 UTC (permalink / raw)
To: Daniel Wagner
Cc: Usama.Anjum, Steven Rostedt, linux-trace-kernel, linux-kernel,
Daniel Bristot de Oliveira, kernel, gustavo.padovan, helen.koike
Thanks you Daniel for replying!
On 9/13/24 6:47 PM, Daniel Wagner wrote:
> On Thu, Sep 12, 2024 at 06:58:02PM GMT, Muhammad Usama Anjum wrote:
>> We are running rt-tests on KernelCI. I'm looking at failures and I found
>> out that rtla osnoise and rtla timerlat are failing. We have just
>> enabled these tests and they are failing from day one.
>
> Thanks a lot on working on this!
>
>> The first thing I fixed in my local setup is to sync the version of rtla
>> with that of the running kernel from the source. It resolves the Tracer
>> timerlat not found!" error as we had installed the older rtla package
>> from Debian on CI.
>
> There is some dependency between kernel version and the rtla tool suite.
> I suppose there is a window of version which you can differ but I
> suppose the Debian packaged version is way too old for recent kernels.
>
>> I'll update it. Is the version of rtla dependent on
>> the exact kernel version or any recent rtla version is acceptable?
>
> I have to figure this out. It could be that we need to build/provide
> matching rtla versions to the kernel. In theory the API should be stable
> etc but I suspect the APIs got broken (not on purpose) in the early
> days. Anyway, we have to figure this out as we can't ask Daniel sadly.
>
>> The other errors are persistent:
>>
>> ➜ sudo ./rtla osnoise hist -r 900000
>> Failed to set runtime and/or period
>> Could not apply config
>
> This works on my Tumbleweed kernel (pretty much a vanila kernel)
> 6.10.9-1-default with the matching rtla version 6.10.9.
>
> What version do you use?
I'll report back the version.
>
>> I thought maybe some argument are wrong. I ran the example from man page:
>>
>> ➜ sudo ./rtla osnoise hist -P F:1 -c 0-11 -r 900000 -d 1M -b 10 -E 25
>> Failed to apply CPUs config
>> Could not apply config
>
> Same here. This works on my local kernel.
>
>> Is there some configuration which is missing for running rtla? Please
>> let me know.
>
> Are these
>
> CONFIG_OSNOISE_TRACER
> CONFIG_TIMERLAT_TRACER
>
> config option enabled in your kernel?
I'd missed these configurations. I'm trying with them now. I think this
is the root cause. I'll test with them. Hopefully problem would be gone
after it. Otherwise I'll look into installing the matching rtla binary
as well.
>
> Thanks,
> Daniel
>
--
BR,
Muhammad Usama Anjum
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-16 5:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12 13:58 [Report] rtla: Failed to set runtime and/or period Muhammad Usama Anjum
2024-09-13 13:47 ` Daniel Wagner
2024-09-16 5:33 ` Muhammad Usama Anjum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox