Michael Jeanson [Wed, 17 Jun 2015 20:28:02 +0000 (16:28 -0400)]
Fix: version checks for kernel 4.0
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 15 Jun 2015 16:28:25 +0000 (12:28 -0400)]
Fix: Incorrect Ubuntu kernel patchlevel
The kernel version used should be the one in Makefile and generated
version.h, not the one tweaked by Ubuntu as "0" in the built package.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 13 Jun 2015 09:14:17 +0000 (11:14 +0200)]
Fix: cpu-id context should use int type
cycles_t makes no sense as type for cpu-id context.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 11 Jun 2015 21:40:21 +0000 (23:40 +0200)]
Implement cpu-id context
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 11 Jun 2015 15:39:16 +0000 (17:39 +0200)]
Implement cpu_id context for filtering
cpu_id context can now be used for filtering, e.g.:
lttng enable-event -k sched_switch --filter '$ctx.cpu_id==1'
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 11 Jun 2015 15:38:46 +0000 (17:38 +0200)]
Fix: context printk mismatch on error
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 11 Jun 2015 08:09:49 +0000 (10:09 +0200)]
Cleanup: misleading comment about deferrable timer
Timer in lttng-modules are not deferrable, because we cannot hook into
the Linux kernel CPU idle events, because no notifiers are exposed for
those.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Martin Leisener [Fri, 29 May 2015 20:29:44 +0000 (16:29 -0400)]
Fix: arm-32 build
The current master branch of lttng-modules doesn't seem to compile for
arm-32 builds.
The patch below repairs the build for arm (and still builds on a x86)
(tested on Ubuntu 12.04 LTS x86 + imx6 solo)
Signed-off-by: Martin Leisener <martin@leisener.de>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Alexandre Montplaisir [Tue, 26 May 2015 20:12:00 +0000 (16:12 -0400)]
Fix: Update kmem event for Ubuntu's 3.16 kernel
The upstream patch in question in commit
72906e1 was cherry-picked into
Ubuntu's 3.16 kernel backport branch (called lts-utopic). The version
check should also include this branch.
The other backport branch, lts-vivid, and all following ones will be
covered by the standard
LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)
check, so should not require other workarounds.
References #889.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 27 May 2015 16:56:05 +0000 (12:56 -0400)]
Fix: RHEL 7.1 block instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 27 May 2015 16:19:01 +0000 (12:19 -0400)]
Fix: add RHEL version macros
RHEL 7.1 has backported upstream patches that change the kvm.h
tracepoint prototype. Add version check specific to RHEL to handle this
case.
RHEL 7.x has the required fixes backported that allow removing the 3.10
blacklist check for them, so take this into account.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 27 May 2015 16:13:32 +0000 (12:13 -0400)]
Fix: add missing parenthesis in ubuntu version check
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 26 May 2015 19:22:01 +0000 (15:22 -0400)]
Fix: remove regmap instrumentation for kernels < 4.1
Modifications to regmap.h instrumentation in mainline Linux kernel has
been no less than erratic. First, the public instrumentation header
regmap.h include a private driver header in Linux 4.0. Then, regmap.h
is moved to the private driver directory in Linux 4.1. To make things
worse, the 4.0 commit has been picked into stable branches of the Linux
kernel.
Since this does not appear to be an instrumentation of utmost
importance, only build this instrumentation probe if the private header
is found in the driver directory (need full kernel sources).
This removes regmap instrumentation for older kernels.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Alexandre Montplaisir [Fri, 22 May 2015 18:36:53 +0000 (14:36 -0400)]
Fix: Update kmem event for recent Ubuntu kernel
Ubuntu backported a patch into their 3.13 (Trusty) branch which
changes kmem event definition.
Upstream commit
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=
99592d598eca62bdbbf62b59941c189176dfc614
first appears in 4.0 (and was later backported to 3.19.2).
We already have the proper check for this.
This corresponds to Ubuntu commit
http://kernel.ubuntu.com/git/ubuntu/ubuntu-trusty.git/commit/?id=
d938e4bff1089a1f4757ed94a5cace803c6a363b
which was first released with 3.13.0-50.82.
This required adding a new check specifically for the
Ubuntu version.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 14 May 2015 22:29:58 +0000 (18:29 -0400)]
Fix: missing statedump end event when block device listing available
Incorrect handling of lttng_enumerate_block_devices() return value of 0
(which means "ok"), causing do_lttng_statedump() to return early.
To causes missing "lttng_statedump_end" in traces where block device
enumeration is available (CONFIG_KALLSYMS=y).
Reported-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 14 May 2015 15:33:47 +0000 (11:33 -0400)]
Fix: don't generate incorrect macros for debian/ubuntu version check
When the debian/ubuntu macros are unset, we end up generating macros
that have no right hand operand to "+", which seems to break compilation
on some compilers, even though it will always be optimized away.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 14 May 2015 15:24:20 +0000 (11:24 -0400)]
Revert "Fix: build against Ubuntu kernels"
This reverts commit
a748963b76f353d459a3faf85eecc96f52811eee.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 14 May 2015 13:13:49 +0000 (09:13 -0400)]
Fix: build against Ubuntu kernels
Recent Ubuntu kernels appear to define DEBIAN_API_VERSION, but they are
not really a Debian kernel per-se: the abi-debian-version.sh cannot find
the expected Debian kernel version string layout.
Therefore, change the conditional check to use directly the
LTTNG_DEBIAN_VERSION_CODE define, which is defined only when the
abi-debian-version.sh script figures out it builds against a Debian
kernel.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sebastien Lorrain [Wed, 15 Apr 2015 15:53:53 +0000 (11:53 -0400)]
Add namespace info in sched_fork and statedump
Modifications to sched_fork : Add a field for parent and child pid
namespace inode (as in /proc/$PID/ns/pid). Also add a field for the
child VTID.
Modifications to lttng_statedump_process_state : Add a field for the pid
namespace inode of the task.
Signed-off-by: Sebastien Lorrain <sebastien.lorrain01@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 5 May 2015 19:54:24 +0000 (15:54 -0400)]
Fix: ext4 instrumentation: flags parameter did not exist prior to 3.11
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 5 May 2015 19:42:37 +0000 (15:42 -0400)]
Fix: printk instrumentation: remove "condition" tracepoints
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 22:58:51 +0000 (18:58 -0400)]
Fix: regmap build against kernel 4.0 kernel headers
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 21:47:53 +0000 (17:47 -0400)]
Add mmu_valid_gen field to mmutrace events
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 21:33:47 +0000 (17:33 -0400)]
Fix: add missing x86 mmutrace kernel header include
Needed to ensure the compiler checks prototypes of lttng-modules probe
against the kernel prototypes.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 21:32:54 +0000 (17:32 -0400)]
Fix: x86 mmutrace event extra field for kernels >= 3.11
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 21:23:16 +0000 (17:23 -0400)]
Fix: remove execute flag from kvm.h file
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 21:20:28 +0000 (17:20 -0400)]
Fix: build x86 kvm probes on kernels >= 4.1-rc1
iodev.h has moved to include/kvm/.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 20:50:31 +0000 (16:50 -0400)]
Fix: compilation on 4.1-rc1 kernel, remove unused WB_WORK_REASON
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 20:44:11 +0000 (16:44 -0400)]
Fix: 4.1-rc1 Linux build and regmap instrumentation
regmap header has been privatized.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 19:30:03 +0000 (15:30 -0400)]
Fix: don't clash with older Debian kernel versions
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 15:03:17 +0000 (11:03 -0400)]
Fix: update get_pfnblock_flags_mask wrapper for debian kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 27 Apr 2015 14:57:34 +0000 (10:57 -0400)]
Fix: discover Debian API
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 22:20:11 +0000 (18:20 -0400)]
Fix: Update README.md to match reality: kernels >= 2.6.36 are supported
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:51:50 +0000 (17:51 -0400)]
Fix: atomic.h wrapper for kernels < 2.6.37
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:46:51 +0000 (17:46 -0400)]
Fix: disable x86 kvm instrumentation for kernels < 2.6.38
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:42:06 +0000 (17:42 -0400)]
Fix: add missing types.h include for older kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:39:35 +0000 (17:39 -0400)]
Fix: add hlist lttng wrappers
For older kernels (e.g. 2.6.38).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:38:59 +0000 (17:38 -0400)]
Fix: add struct file_handle forward declaration
For older kernels (e.g. 2.6.38).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:13:41 +0000 (17:13 -0400)]
Fix: string length calculation reversed user vs kernel args
Only affects feature recently merged into master.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 21:00:47 +0000 (17:00 -0400)]
Fix: use lttng_rcu_dereference within lttng-syscalls.c
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 20:56:33 +0000 (16:56 -0400)]
Fix: add lttng rcu wrapper to allow tracing RCU
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 23 Apr 2015 20:11:15 +0000 (16:11 -0400)]
Fix: double-unlock of session mutex
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 20:30:17 +0000 (16:30 -0400)]
Fix: check that class and instance prototype match
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 20:28:53 +0000 (16:28 -0400)]
Fix: lttng-events.h check function takes void
The kernel nerver really emit this, but our function prototype should
not take the void *data parameter, so we are similar to the the "with
argument" prototype, which does not have the private data pointer.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Simon Marchi [Thu, 16 Apr 2015 20:45:09 +0000 (16:45 -0400)]
Fix: regmap instrumentation for Linux 3.19.4 and 4.0
This is necessary after commit
c6b570d97c0e77f570bb6b2ed30d372b2b1e9aae
in the kernel.
[ Edit by Mathieu Desnoyers: fix DECLARE_EVENT_CLASS regmap_reg too. ]
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 18:49:38 +0000 (14:49 -0400)]
Fix: kernels >= 2.6.33 put utsrelease.h in generated/
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 18:36:22 +0000 (14:36 -0400)]
Fix: Include utsrelease.h in lttng-kernel-version.h
Including module.h includes other headers, which is an issue for the
get_pfnblock_flags_mask wrapper.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 16:35:55 +0000 (12:35 -0400)]
Fix: ext4 ext4_da_write_pages instrumentation for kernels < 3.11.0
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 16:32:19 +0000 (12:32 -0400)]
Fix: old kernels need module.h included before vermagic.h
This is at least true for 3.2.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 16:15:03 +0000 (12:15 -0400)]
Fix: net instrumentation for kernels 2.6.39 and below
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 17 Apr 2015 16:07:57 +0000 (12:07 -0400)]
Fix: version condition in makefile
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Apr 2015 21:15:45 +0000 (17:15 -0400)]
Implement wrapper around get_pfnblock_flags_mask
This is used by kmem instrumentation, and changed in 4.0.0. This change
has been backported to 3.19.2 stable kernel.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Apr 2015 21:14:53 +0000 (17:14 -0400)]
Be more restrictive in provider name check
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Apr 2015 21:13:37 +0000 (17:13 -0400)]
Fix: net instrumentation namespacing
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Apr 2015 21:13:14 +0000 (17:13 -0400)]
Fix: compaction instrumentation namespacing
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Apr 2015 19:49:36 +0000 (15:49 -0400)]
Fix: Support 4.x kernel versions in Makefile
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 13 Apr 2015 15:28:45 +0000 (11:28 -0400)]
Fix: remove stale TP_STRUCT_entry from kvm instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 10 Apr 2015 22:34:46 +0000 (18:34 -0400)]
Fix: add missing module.h include to lttng-probe-user.c
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 10 Apr 2015 22:29:34 +0000 (18:29 -0400)]
Fix: use lttng hlist wrapper in wildcard and filter
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 6 Apr 2015 15:43:42 +0000 (11:43 -0400)]
Fix: namespace asoc and kmem instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 20 Mar 2015 21:20:32 +0000 (17:20 -0400)]
Fix: update instrumentation after wildcard rebase
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 20 Mar 2015 21:15:22 +0000 (17:15 -0400)]
Fix: lttng_abi_syscall_list does not need to be exported
Fix rebase of wildcard feature.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 12 Nov 2014 23:34:08 +0000 (18:34 -0500)]
Migrate ARM, powerpc, MIPS syscall instrumentation to TP_FIELDS
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 12 Nov 2014 23:32:34 +0000 (18:32 -0500)]
Remove now unused syscalls.h from lttng-modules
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 12 Nov 2014 21:57:48 +0000 (16:57 -0500)]
Filter: start with enabler "disabled"
Since we can create the enabler, then attach the filter, and then enable
it, ensure it is in a "disabled" state initially.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 12 Nov 2014 21:06:34 +0000 (16:06 -0500)]
Fix coverity warning about sizeof(void **) != sizeof(void *)
The size of the copied data is actually void *, not void **.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 11 Nov 2014 21:29:06 +0000 (16:29 -0500)]
Fix length type and text sequence base
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 11 Nov 2014 20:58:56 +0000 (15:58 -0500)]
Fix: TP_FIELDS: add missing headers
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 11 Nov 2014 20:57:23 +0000 (15:57 -0500)]
Migrate syscall instrumentation to TP_FIELDS
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 11 Nov 2014 19:54:12 +0000 (14:54 -0500)]
Migrate tracepoint instrumentation to TP_FIELDS
At this stage syscall instrumentation is disabled. Will come in a
following commit.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 6 Nov 2014 22:21:59 +0000 (17:21 -0500)]
Implement filtering infrastructure
Implement filtering infrastructure in the enablers. It is not yet active
in the tracepoint probes, since we need to modify the
LTTNG_TRACEPOINT_EVENT() to follow lttng-ust more closely beforehand.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 5 Nov 2014 21:44:52 +0000 (16:44 -0500)]
syscall wildcards: apply syscall filtering
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 5 Nov 2014 00:12:04 +0000 (19:12 -0500)]
Implement syscall wildcard support
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 3 Nov 2014 20:55:53 +0000 (15:55 -0500)]
Implement tracepoint wildcard support
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 3 Nov 2014 20:54:13 +0000 (15:54 -0500)]
Namespace all tracepoints
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 2 Apr 2015 19:26:56 +0000 (15:26 -0400)]
Implement list.h wrapper for hlist in older kernels
The hlist API has changed between kernels 3.2 and recent (e.g. 3.19.2)
kernels. Implement a wrapper header to implement the macros missing from
older kernels that we support.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 28 Jan 2015 14:48:56 +0000 (09:48 -0500)]
Implement listing of pid tracker content
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 27 Sep 2014 20:20:31 +0000 (16:20 -0400)]
Implement PID tracking
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Antoine Busque [Sat, 21 Mar 2015 19:13:18 +0000 (15:13 -0400)]
Fix: mm_page_alloc_extfrag instrumentation for kernel 3.14.36
The following commit has been backported from kernel 3.19.2 into
3.14.36, introducing a change to mm_page_alloc_extfrag and therefore
provoking a build failure on a 3.14.36 kernel:
commit
a4f3f96f850db69890f47984c60606a2362bee89
Author: Vlastimil Babka <vbabka@suse.cz>
Date: Wed Feb 11 15:28:15 2015 -0800
mm: when stealing freepages, also take pages created by splitting buddy page
commit
99592d598eca62bdbbf62b59941c189176dfc614 upstream.
This patch adds the proper version check to allow building on 3.14.y.
Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 19 Mar 2015 19:29:01 +0000 (15:29 -0400)]
Fix: update writeback instrumentation for kernel 4.0+
Introduced by Linux kernel commit:
commit
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8
Author: Theodore Ts'o <tytso@mit.edu>
Date: Mon Feb 2 00:37:00 2015 -0500
vfs: add support for a lazytime mount option
And:
commit
de1414a654e66b81b5348dbc5259ecf2fb61655e
Author: Christoph Hellwig <hch@lst.de>
Date: Wed Jan 14 10:42:36 2015 +0100
fs: export inode_to_bdi and use it in favor of mapping->backing_dev_info
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 19 Mar 2015 18:32:59 +0000 (14:32 -0400)]
Fix: compaction mm_compaction_isolate_template update for Linux 4.0+
Updated by Linux commit:
commit
b7aba6984dc048503b69c2a885098cdd430832bf
Author: Mel Gorman <mel@csn.ul.ie>
Date: Thu Jan 13 15:45:54 2011 -0800
mm: compaction: add trace events for memory compaction activity
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 19 Mar 2015 17:02:38 +0000 (13:02 -0400)]
Fix: kmem instrumentation update for mm_page_alloc_extfrag kernel 3.19.2+
This commit introduces an API change for mm_page_alloc_extfrag
instrumentation:
commit
cdf476685b5c9dcd20f0305791bd60212cace25d
Author: Vlastimil Babka <vbabka@suse.cz>
Date: Wed Feb 11 15:28:15 2015 -0800
mm: when stealing freepages, also take pages created by splitting buddy page
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 19 Mar 2015 16:55:48 +0000 (12:55 -0400)]
Fix: kmem instrumentation: mm_page_alloc extfrag change_ownership field
Linux kernel 3.12.30 and onward changes the parameter received by this
callback. It's the same type, but the meaning differs. This is why it
did compile fine, but the data gathered did not really represent
change_ownership.
This change has been introduced in the Linux kernel by this commit:
commit
52c8f6a5aeb0bdd396849ecaa72d96f8175528f5
Author: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Date: Tue Nov 12 15:08:19 2013 -0800
mm: get rid of unnecessary overhead of trace_mm_page_alloc_extfrag()
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 16 Jan 2015 16:33:56 +0000 (11:33 -0500)]
Fix: missing parenthesis in offset_align_floor
Is currently unused. Triggers a compile error when used.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 12 Jan 2015 21:27:11 +0000 (16:27 -0500)]
Fix: implement time.h wrapper for FD_ISSET
Kernels v3.4.0 to v3.4.7 still define FD_ISSET, but __FD_ISSET has been
removed. Therefore, we cannot use the FD_ISSET define to find out of we
need to use the new close_on_exec(). Implement a wrapper based on kernel
version detection instead.
Fixes #872
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 28 Dec 2014 14:08:41 +0000 (09:08 -0500)]
Fix: update sched instrumentation for 3.19+ kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 28 Dec 2014 14:05:51 +0000 (09:05 -0500)]
Fix: update rcu instrumentation for 3.19+ kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 28 Dec 2014 13:57:59 +0000 (08:57 -0500)]
Fix: update scsi instrumentation for 3.19+ kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 28 Dec 2014 13:53:34 +0000 (08:53 -0500)]
Fix: update module instrumentation for 3.19+ kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 28 Dec 2014 13:49:25 +0000 (08:49 -0500)]
Fix: Add f_dentry wrapper for 3.19+ kernels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 24 Dec 2014 17:32:30 +0000 (12:32 -0500)]
Fix: introduce lttng_get_unused_fd() wrapper for 3.19 kernels
get_unused_fd disappears in 3.19 kernel, where get_unused_fd_flags(0)
should be used instead.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 24 Dec 2014 17:24:04 +0000 (12:24 -0500)]
Fix: lttng_this_cpu_ptr wrapper for kernel 3.19+
Starting from kernel 3.19-rc1, __get_cpu_var() disappears, replaced by
this_cpu_ptr(). Introduce a wrapper using either depending on the kernel
version. Older kernels did not expose a this_cpu_ptr(), so keep on using
__get_cpu_var() on old kernels.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 24 Dec 2014 16:19:08 +0000 (11:19 -0500)]
Fix: Update btrfs instrumentation for 3.18 Linux kernel
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Engraf [Thu, 18 Dec 2014 10:45:22 +0000 (11:45 +0100)]
Fix compile error on kernel 3.0.101 with CONFIG_PERF_EVENTS
The context parameter of perf_event_create_kernel_counter() was introduced
with kernel 3.1.
Signed-off-by: David Engraf <david.engraf@sysgo.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Engraf [Wed, 17 Dec 2014 15:17:31 +0000 (10:17 -0500)]
Conditional compilation introduced by lttng-modules commit
0007344741ef65259bc52dea72259173dfbf96c0
needs to be applied for kernels 3.12.30 and up in the 3.12.x branch.
Signed-off-by: David Engraf <david.engraf@sysgo.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Simon Marchi [Sun, 7 Dec 2014 17:14:19 +0000 (12:14 -0500)]
Fix: compaction instrumentation update for 3.14.x stable kernels
Conditional compilation introduced by lttng-modules commit
0007344741ef65259bc52dea72259173dfbf96c0
needs to be applied to kernels 3.14.25 and up in the 3.14.x branch.
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reported-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 1 Dec 2014 23:12:53 +0000 (18:12 -0500)]
Fix: context alignment not properly handled
This issue affects only architectures without efficient unaligned
accesses, only when a context field with larger alignment follows a
context field with smaller alignment. It generates unreadable traces
when such context fields are enabled in this configuration.
Fixes #858
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
André Goddard Rosa [Fri, 14 Nov 2014 05:33:02 +0000 (21:33 -0800)]
Fix compilation on Linux kernel >= 3.18.0
Since kernel commit
8a9522d2fe compilation fails as kvm_age_page
tracepoint had its signature changed, so update it accordingly.
Tested pointing to kernels:
git reset --hard v3.17; make init/version.o
git reset --hard v3.18-rc1; make init/version.o
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 12 Nov 2014 19:29:47 +0000 (14:29 -0500)]
Fix: build for architectures without HAVE_SYSCALL_TRACEPOINTS
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 20 Oct 2014 23:02:08 +0000 (19:02 -0400)]
Version 2.6.0-rc1
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
This page took 0.043618 seconds and 4 git commands to generate.