diff mbox series

API/cgroup: Add rdma controller

Message ID 20220824215421.90947-1-luke.nowakowskikrijger@canonical.com
State Accepted
Headers show
Series API/cgroup: Add rdma controller | expand

Commit Message

Luke Nowakowski-Krijger Aug. 24, 2022, 9:54 p.m. UTC
There is a test reporting "TBROK: 'rdma' controller is unknown
to LTP" so lets add the controller.

Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
---
 lib/tst_cgroup.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Comments

Petr Vorel Aug. 25, 2022, 10:59 a.m. UTC | #1
Hi Luke,

> There is a test reporting "TBROK: 'rdma' controller is unknown
> to LTP" so lets add the controller.

Out of curiosity: which test?

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr

> Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
> ---
>  lib/tst_cgroup.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

> diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
> index 1cfd79243..1da3f0a5d 100644
> --- a/lib/tst_cgroup.c
> +++ b/lib/tst_cgroup.c
> @@ -93,9 +93,10 @@ enum cgroup_ctrl_indx {
>  	CTRL_BLKIO,
>  	CTRL_MISC,
>  	CTRL_PERFEVENT,
> -	CTRL_DEBUG
> +	CTRL_DEBUG,
> +	CTRL_RDMA
>  };
> -#define CTRLS_MAX CTRL_DEBUG
> +#define CTRLS_MAX CTRL_RDMA

>  /* At most we can have one cgroup V1 tree for each controller and one
>   * (empty) v2 tree.
> @@ -253,6 +254,10 @@ static const struct cgroup_file debug_ctrl_files[] = {
>  	{ }
>  };

> +static const struct cgroup_file rdma_ctrl_files[] = {
> +	{ }
> +};
> +
>  #define CTRL_NAME_MAX 31
>  #define CGROUP_CTRL_MEMBER(x, y)[y] = { .ctrl_name = #x, .files = \
>  	x ## _ctrl_files, .ctrl_indx = y, NULL, 0 }
> @@ -275,6 +280,7 @@ static struct cgroup_ctrl controllers[] = {
>  	CGROUP_CTRL_MEMBER(misc, CTRL_MISC),
>  	CGROUP_CTRL_MEMBER(perf_event, CTRL_PERFEVENT),
>  	CGROUP_CTRL_MEMBER(debug, CTRL_DEBUG),
> +	CGROUP_CTRL_MEMBER(rdma, CTRL_RDMA),
>  	{ }
>  };
Richard Palethorpe Aug. 25, 2022, 4:22 p.m. UTC | #2
Hi,

Petr Vorel <pvorel@suse.cz> writes:

> Hi Luke,
>
>> There is a test reporting "TBROK: 'rdma' controller is unknown
>> to LTP" so lets add the controller.
>
> Out of curiosity: which test?
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> Kind regards,
> Petr

I'm not sure, I think it was one of the shell tests which tries to mount
all the controllers. Anyway, merged thanks!
Luke Nowakowski-Krijger Aug. 25, 2022, 5:39 p.m. UTC | #3
Hi,

On Thu, Aug 25, 2022 at 9:24 AM Richard Palethorpe <rpalethorpe@suse.de>
wrote:

> Hi,
>
> Petr Vorel <pvorel@suse.cz> writes:
>
> > Hi Luke,
> >
> >> There is a test reporting "TBROK: 'rdma' controller is unknown
> >> to LTP" so lets add the controller.
> >
> > Out of curiosity: which test?
> >
> > Reviewed-by: Petr Vorel <pvorel@suse.cz>
> >
> > Kind regards,
> > Petr
>
> I'm not sure, I think it was one of the shell tests which tries to mount
> all the controllers. Anyway, merged thanks!
>
>
It looks like cgroup/cgroup_regression_test.sh test 7 was the failing test.
Li ran into this earlier too I think.

Thanks for merging :)

Thanks,
- Luke
Petr Vorel Aug. 25, 2022, 6:53 p.m. UTC | #4
> Hi,

> On Thu, Aug 25, 2022 at 9:24 AM Richard Palethorpe <rpalethorpe@suse.de>
> wrote:

> > Hi,

> > Petr Vorel <pvorel@suse.cz> writes:

> > > Hi Luke,

> > >> There is a test reporting "TBROK: 'rdma' controller is unknown
> > >> to LTP" so lets add the controller.

> > > Out of curiosity: which test?

> > > Reviewed-by: Petr Vorel <pvorel@suse.cz>

> > > Kind regards,
> > > Petr

> > I'm not sure, I think it was one of the shell tests which tries to mount
> > all the controllers. Anyway, merged thanks!


> It looks like cgroup/cgroup_regression_test.sh test 7 was the failing test.
> Li ran into this earlier too I think.

Thanks for info!

Kind regards,
Petr

> Thanks for merging :)

> Thanks,
> - Luke
diff mbox series

Patch

diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
index 1cfd79243..1da3f0a5d 100644
--- a/lib/tst_cgroup.c
+++ b/lib/tst_cgroup.c
@@ -93,9 +93,10 @@  enum cgroup_ctrl_indx {
 	CTRL_BLKIO,
 	CTRL_MISC,
 	CTRL_PERFEVENT,
-	CTRL_DEBUG
+	CTRL_DEBUG,
+	CTRL_RDMA
 };
-#define CTRLS_MAX CTRL_DEBUG
+#define CTRLS_MAX CTRL_RDMA
 
 /* At most we can have one cgroup V1 tree for each controller and one
  * (empty) v2 tree.
@@ -253,6 +254,10 @@  static const struct cgroup_file debug_ctrl_files[] = {
 	{ }
 };
 
+static const struct cgroup_file rdma_ctrl_files[] = {
+	{ }
+};
+
 #define CTRL_NAME_MAX 31
 #define CGROUP_CTRL_MEMBER(x, y)[y] = { .ctrl_name = #x, .files = \
 	x ## _ctrl_files, .ctrl_indx = y, NULL, 0 }
@@ -275,6 +280,7 @@  static struct cgroup_ctrl controllers[] = {
 	CGROUP_CTRL_MEMBER(misc, CTRL_MISC),
 	CGROUP_CTRL_MEMBER(perf_event, CTRL_PERFEVENT),
 	CGROUP_CTRL_MEMBER(debug, CTRL_DEBUG),
+	CGROUP_CTRL_MEMBER(rdma, CTRL_RDMA),
 	{ }
 };