All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH lttng-modules] RFC: Always build vmscan probe
@ 2017-04-10 19:03 Michael Jeanson
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Jeanson @ 2017-04-10 19:03 UTC (permalink / raw)
  To: lttng-dev

The mm/vmscan.c compile unit is a obj-y, even on an old 2.6.36 kernel,
always build the vmscan probe regardless of kernel configuration.

Closes: #143

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
 probes/Kbuild | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/probes/Kbuild b/probes/Kbuild
index 2afb6dd..bf14c75 100644
--- a/probes/Kbuild
+++ b/probes/Kbuild
@@ -143,19 +143,11 @@ ifneq ($(CONFIG_SCSI),)
       echo "lttng-probe-scsi.o" ; fi;)
 endif # CONFIG_SCSI
 
-vmscan = $(shell \
+obj-$(CONFIG_LTTNG) += $(shell \
   if [ $(VERSION) -ge 3 \
     -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -ge 36 \) ] ; then \
     echo "lttng-probe-vmscan.o" ; fi;)
 
-ifneq ($(CONFIG_SWAP),)
-  obj-$(CONFIG_LTTNG) += $(vmscan)
-else
-  ifneq ($(CONFIG_CGROUP_MEM_RES_CTLR),)
-    obj-$(CONFIG_LTTNG) += $(vmscan)
-  endif # CONFIG_CGROUP_MEM_RES_CTLR
-endif # CONFIG_SWAP
-
 # lock probe does not work, so disabling it for now
 #ifneq ($(CONFIG_LOCKDEP),)
 #  obj-$(CONFIG_LTTNG) += lttng-probe-lock.o
-- 
2.7.4

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [PATCH lttng-modules] RFC: Always build vmscan probe
       [not found] <1491850983-2984-1-git-send-email-mjeanson@efficios.com>
@ 2017-04-19 15:52 ` Jonathan Rajotte Julien
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Rajotte Julien @ 2017-04-19 15:52 UTC (permalink / raw)
  To: Michael Jeanson, lttng-dev

Hi,

On 2017-04-10 03:03 PM, Michael Jeanson wrote:
> The mm/vmscan.c compile unit is a obj-y, even on an old 2.6.36 kernel,
> always build the vmscan probe regardless of kernel configuration.
> 
> Closes: #143

Probably the incorrect number since the #143 of bugs.lttng.org point to an internal project issue that date back to 5 years ago.

> 

I tested build and runtime on a 4.4.14 kernel with !CONFIG_SWAP & !CONFIG_MEMCG. Everything seems fine, events get hits correctly on a memory stress with "stress" with 90% memory usage scenario.

Tested-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>

> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
> ---
>  probes/Kbuild | 10 +---------
>  1 file changed, 1 insertion(+), 9 deletions(-)
> 
> diff --git a/probes/Kbuild b/probes/Kbuild
> index 2afb6dd..bf14c75 100644
> --- a/probes/Kbuild
> +++ b/probes/Kbuild
> @@ -143,19 +143,11 @@ ifneq ($(CONFIG_SCSI),)
>        echo "lttng-probe-scsi.o" ; fi;)
>  endif # CONFIG_SCSI
>  
> -vmscan = $(shell \
> +obj-$(CONFIG_LTTNG) += $(shell \
>    if [ $(VERSION) -ge 3 \
>      -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -ge 36 \) ] ; then \
>      echo "lttng-probe-vmscan.o" ; fi;)

We might want to move this closer to similar statements (e.g. closer to lttng-probe-signal.o).

Cheers

>  
> -ifneq ($(CONFIG_SWAP),)
> -  obj-$(CONFIG_LTTNG) += $(vmscan)
> -else
> -  ifneq ($(CONFIG_CGROUP_MEM_RES_CTLR),)
> -    obj-$(CONFIG_LTTNG) += $(vmscan)
> -  endif # CONFIG_CGROUP_MEM_RES_CTLR
> -endif # CONFIG_SWAP
> -
>  # lock probe does not work, so disabling it for now
>  #ifneq ($(CONFIG_LOCKDEP),)
>  #  obj-$(CONFIG_LTTNG) += lttng-probe-lock.o
> 

-- 
Jonathan R. Julien
Efficios
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

end of thread, other threads:[~2017-04-19 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 19:03 [PATCH lttng-modules] RFC: Always build vmscan probe Michael Jeanson
     [not found] <1491850983-2984-1-git-send-email-mjeanson@efficios.com>
2017-04-19 15:52 ` Jonathan Rajotte Julien

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.