Mathieu Desnoyers [Fri, 2 Mar 2012 15:23:39 +0000 (10:23 -0500)]
Fix: dmesg printout should not print metadata warnings
Metadata channel retry when an event is dropped by the underlying
buffer. We should not print a message showing that the event has been
dropped to the user on dmesg console.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 2 Mar 2012 15:12:42 +0000 (10:12 -0500)]
Fix: use transport name as channel name
Clarify dmesg printout.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 22 Feb 2012 00:20:13 +0000 (19:20 -0500)]
Fix: Return -EINVAL instead of print warning if non power of 2 size/num_subbuf
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 20 Feb 2012 20:32:01 +0000 (15:32 -0500)]
Update Version to 2.0.0-rc1
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 20 Feb 2012 19:59:42 +0000 (14:59 -0500)]
Standardize version across toolchain
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Juha Niskanen [Thu, 16 Feb 2012 16:55:42 +0000 (11:55 -0500)]
statedump: Use old macro name for kernel 2.6.38
Signed-off-by: Juha Niskanen <juniskane@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 16:39:57 +0000 (11:39 -0500)]
Update ChangeLog to 2.0-pre15
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 16:00:43 +0000 (11:00 -0500)]
Add timer instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 15:56:11 +0000 (10:56 -0500)]
fix: need to undef mainline define
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 15:54:41 +0000 (10:54 -0500)]
fix: Include signal.h instead of irq.h for prototype match check
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 15:46:32 +0000 (10:46 -0500)]
Add signal instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 14:36:02 +0000 (09:36 -0500)]
Update ChangeLog to 2.0-pre14
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 03:13:43 +0000 (22:13 -0500)]
syscall tracing: sys_getcpu
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 02:48:30 +0000 (21:48 -0500)]
Add sys_clone x86 instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 02:13:32 +0000 (21:13 -0500)]
statedump: fix include circular dep
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 16 Feb 2012 02:02:00 +0000 (21:02 -0500)]
Implement state dump
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 10 Feb 2012 00:36:51 +0000 (19:36 -0500)]
Update Changelog to 2.0-pre13
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 8 Feb 2012 14:37:11 +0000 (09:37 -0500)]
Update README
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 7 Feb 2012 04:29:20 +0000 (23:29 -0500)]
environment: write sysname, release, version, domain to metadata
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 7 Feb 2012 04:23:38 +0000 (23:23 -0500)]
Allow open /proc/lttng for read & write
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 3 Feb 2012 03:29:39 +0000 (22:29 -0500)]
Update Changelog to 2.0-pre12
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 2 Feb 2012 19:42:37 +0000 (14:42 -0500)]
Add x86 32/64 execve syscall instrumentation override
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 2 Feb 2012 17:21:53 +0000 (12:21 -0500)]
Remove unused defines
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 2 Feb 2012 17:12:17 +0000 (12:12 -0500)]
Add padding to ABI
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 2 Feb 2012 17:03:21 +0000 (12:03 -0500)]
Use LTTNG_KERNEL_SYM_NAME_LEN
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 2 Feb 2012 16:55:18 +0000 (11:55 -0500)]
Update version to 1.9.9
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 30 Jan 2012 16:27:58 +0000 (11:27 -0500)]
Add missing double-quotes to clock uuid
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 30 Jan 2012 15:30:05 +0000 (10:30 -0500)]
clock: read bootid as clock monotonic ID
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 30 Jan 2012 14:19:23 +0000 (09:19 -0500)]
Fix comment
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 30 Jan 2012 14:03:58 +0000 (09:03 -0500)]
Cleanup comment
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 27 Jan 2012 02:36:06 +0000 (21:36 -0500)]
clock: output clock description in metadata
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 26 Jan 2012 20:13:55 +0000 (15:13 -0500)]
Properly fix the timekeeping overflow detection
The underlying issue was a mismatch between the ring buffer
configuration description of the number of clock bits (32) saved and the
actual number used (27).
Introduce LTTNG_COMPACT_EVENT_BITS and LTTNG_COMPACT_TSC_BITS across the
code to remove all hardcoded instances of these values to ensure this
kind of mistake does not happen again.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reported-by: Sébastien Barthélémy <barthelemy@crans.org>
Mathieu Desnoyers [Sun, 22 Jan 2012 21:22:24 +0000 (16:22 -0500)]
Fix init bug
Fix reversed logic bug introduced by commit
80996790fa42072d6525f2adb9a910312077bef6
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 21:18:29 +0000 (16:18 -0500)]
rename lib-ring-buffer to lttng-lib-ring-buffer
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 21:17:27 +0000 (16:17 -0500)]
Remove #warning
Keep a comment about future work, but don't generate compiler warnings.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 21:13:41 +0000 (16:13 -0500)]
Mass rename: ltt_*/ltt-* to LTTNG_*/LTTNG-*
For files, defines and symbols.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 20:53:11 +0000 (15:53 -0500)]
Update TODO
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 20:52:05 +0000 (15:52 -0500)]
Update TODO
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 20:51:41 +0000 (15:51 -0500)]
Remove debugfs file (keep only proc file)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 22 Jan 2012 20:47:17 +0000 (15:47 -0500)]
Rename lttng-debugfs-abi files to lttng-abi
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 13 Dec 2011 21:57:37 +0000 (16:57 -0500)]
Update ChangeLog for 2.0-pre11
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 13 Dec 2011 21:37:51 +0000 (16:37 -0500)]
Fix OOPS caused by reference of config pointer
The config pointer points to data that may vanish across the life-time
of the ring buffer stream references. It's only kept valid for the
duration between the channel create and destroy, but the streams can
keep an extra reference on the channel, and thus need the config to stay
valid.
Perform a copy of the config rather than keeping a pointer to it.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:39:10 +0000 (09:39 -0500)]
Gather detailed info from x86 64 32-bit compat syscall instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:26:52 +0000 (09:26 -0500)]
lttng lib: ring buffer move null pointer check to open
Let's move the NULL buf check to the file "open", where it belongs. The
"open" file operation is the actual interface between lib ring buffer
and the modules using it.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:26:06 +0000 (09:26 -0500)]
lttng lib: ring buffer remove duplicate null pointer
This check is performed at mapping setup time in
lib_ring_buffer_mmap_buf() already, so we can safely remove this
duplicata.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:25:18 +0000 (09:25 -0500)]
lttng lib: ring buffer: remove stale null-pointer
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:24:26 +0000 (09:24 -0500)]
lttng wrapper: add missing include to kallsyms wrapper
Needed to keep bissectability.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:22:30 +0000 (09:22 -0500)]
lttng: cleanup one-bit signed bitfields
* Dan Carpenter <dan.carpenter@oracle.com> wrote:
> Sparse complains that these signed bitfields look "dubious". The
> problem is that instead of being either 0 or 1 like people would expect,
> signed one bit variables like this are either 0 or -1. It doesn't cause
> a problem in this case but it's ugly so lets fix them.
* walter harms (wharms@bfs.de) wrote:
> hi,
> This patch looks ok to me but this design is ugly by itself.
> It should be replaced by an uchar uint whatever or use a
> real bool (obviously not preferred by this programmes).
bool :1, uchar :1 or uint :1 could make sense. uchar:1/bool:1 won't save
any space here, because the surrounding fields are either uint or
pointers, so alignment will just add padding.
I try to use int/uint whenever possible because x86 CPUs tend to get
less register false-dependencies when using instructions modifying the
whole register (generated by using int/uint types) rather than only part
of it (uchar/char/bool). I only use char/uchar/bool when there is a
clear wanted space gain.
The reason why I never use the bool type within a structure when I want
a compact representation is that bool takes a whole byte just to
represent one bit:
struct usebitfield {
int a;
unsigned int f:1, g:1, h:1, i:1, j:1;
int b;
};
struct usebool {
int a;
bool f, g, h, i, j;
int b;
};
struct useboolbf {
int a;
bool f:1, g:1, h:1, i:1, j:1;
int b;
};
int main()
{
printf("bitfield %d bytes, bool %d bytes, boolbitfield %d bytes\n",
sizeof(struct usebitfield), sizeof(struct usebool),
sizeof(struct useboolbf));
}
result:
bitfield 12 bytes, bool 16 bytes, boolbitfield 12 bytes
This is because each bool takes one byte, while the bitfields are put in
units of "unsigned int" (or bool for the 3rd struct). So in this
example, we need 5 bytes + 3 bytes alignment for the bool, but only 4
bytes to hold the "unsigned int" unit for the bitfields.
The choice between bool and bitfields must also take into account the
frequency of access to the variable, because bitfields require mask
operations to access the selected bit(s). You will notice that none of
these bitfields are accessed on the tracing fast-path: only in
slow-paths. Therefore, space gain is more important than speed here.
One might argue that I have so few of these fields here that it does not
make an actual difference to go for bitfield or bool. I am just trying
to choose types best suited for their intended purpose, ensuring they
are future-proof and will allow simply adding more fields using the same
type, as needed.
So I guess I'll go for unsigned int :1 (rather than uint:1, so we
keep source-level compatibility with user-space LTTng-UST).
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 9 Dec 2011 14:15:49 +0000 (09:15 -0500)]
Add TODO file
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 6 Dec 2011 01:03:24 +0000 (20:03 -0500)]
Update symbol name length max size to 256
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Yannick Brosseau [Sat, 3 Dec 2011 02:03:19 +0000 (21:03 -0500)]
Fix last modifications to string_from_user operations
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 19 Nov 2011 20:17:52 +0000 (15:17 -0500)]
Document that depmod needs to be executed by hand
External modules don't seem to actually execute depmod on make install,
even though the console output says so. Document that it needs to be
manually executed in the README file.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 7 Nov 2011 22:00:25 +0000 (17:00 -0500)]
Fix strlen_user fault space reservation
The previous fix took care of kernel OOPS, but did not reserve space for
the \0.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 7 Nov 2011 21:46:29 +0000 (16:46 -0500)]
Fix tp_copy_string_from_user handling of faults
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 4 Nov 2011 20:41:50 +0000 (16:41 -0400)]
Disable block layer tracing support for kernels < 2.6.38
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 4 Nov 2011 19:21:02 +0000 (15:21 -0400)]
lttng context: perf counter, fix 32-bit vs 64-bit field size bug
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 4 Nov 2011 10:50:02 +0000 (06:50 -0400)]
Update trace clock warning to match the current development plan
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 4 Nov 2011 10:38:05 +0000 (06:38 -0400)]
ringbuffer: make ring buffer printk less verbose
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thomas Petazzoni [Thu, 3 Nov 2011 12:02:40 +0000 (08:02 -0400)]
Makefile: do not run depmod manually
The modules_install target of the kernel build infrastructure already
runs depmod properly, taking into account the cross-compilation
case. Therefore, it is useless to re-run depmod here, and also harmful
since it does not work in cross-compilation contexts (it does the
depmod on the modules installed on the host and not the ones being
built for the target).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 30 Sep 2011 15:49:24 +0000 (11:49 -0400)]
Version 2.0-pre10
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 30 Sep 2011 15:49:31 +0000 (11:49 -0400)]
x86-32: override sys_mmap syscall instrumentation
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 30 Sep 2011 15:42:24 +0000 (11:42 -0400)]
Fix cast warning
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 29 Sep 2011 22:52:12 +0000 (18:52 -0400)]
Version 2.0-pre9
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 29 Sep 2011 16:28:16 +0000 (12:28 -0400)]
x86 32 syscalls: fix !CONFIG_UID16
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 29 Sep 2011 15:56:49 +0000 (11:56 -0400)]
Use __string_from_user
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Thu, 29 Sep 2011 15:55:12 +0000 (11:55 -0400)]
Add __string_from_user
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 28 Sep 2011 00:58:09 +0000 (20:58 -0400)]
Complete comm -> procname change
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 28 Sep 2011 00:55:24 +0000 (20:55 -0400)]
Rename "comm" context to "procname"
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 22:50:09 +0000 (18:50 -0400)]
Fetch "type" name field for mount syscall
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 22:47:38 +0000 (18:47 -0400)]
Create common override file for all architectures
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 22:35:42 +0000 (18:35 -0400)]
Shrink stack size usage
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 22:31:01 +0000 (18:31 -0400)]
Cleanup: remove unused lttng-compat-syscalls.c file
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 22:29:16 +0000 (18:29 -0400)]
Support detailed compat syscalls on x86_64
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 17:56:30 +0000 (13:56 -0400)]
Fix syscall table
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 17:53:32 +0000 (13:53 -0400)]
Add disabled compat syscalls detail (work in progress)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 16:24:09 +0000 (12:24 -0400)]
Add config compat support for detailed x86_32 syscalls
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 15:52:53 +0000 (11:52 -0400)]
Handle newer 3.1+ perf API
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 15:29:59 +0000 (11:29 -0400)]
Add dummy x86-32 override headers
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 15:28:56 +0000 (11:28 -0400)]
Bind x86-32 syscall headers
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 15:27:41 +0000 (11:27 -0400)]
Add x86-32 syscall headers
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 15:16:03 +0000 (11:16 -0400)]
Add check for KALLSYMS_ALL in syscall extraction script
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 13:19:14 +0000 (09:19 -0400)]
Automate string extraction for syscalls
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 12:35:11 +0000 (08:35 -0400)]
Automate syscall filename/pathname extraction
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 12:31:16 +0000 (08:31 -0400)]
Add exit to ring_buffer_frontend so module is unloadable
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 12:17:43 +0000 (08:17 -0400)]
Add sys_open filename (x86_64)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 27 Sep 2011 12:15:29 +0000 (08:15 -0400)]
Add missing memcpy callback
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Julien Desfossez [Tue, 27 Sep 2011 11:51:34 +0000 (07:51 -0400)]
copy_from_user and memset
This patch provides the copy_from_user and memset operations for the lib
ringbuffer.
[ edit: tp_copy_string_from_user len parameter now excludes final \0 ]
Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sun, 25 Sep 2011 03:25:26 +0000 (23:25 -0400)]
Add missing alignment after header write
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 21 Sep 2011 14:14:20 +0000 (10:14 -0400)]
lib ring buffer: add frontend init as module_init
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 21 Sep 2011 14:08:34 +0000 (10:08 -0400)]
lib ring buffer frontend: add missing lock initialization
[...]
while enabling the events, I get following output:
[ 4304.827819] BUG: spinlock bad magic on CPU#1, ltt-sessiond/1305
[ 4304.841735] lock:
81453c00, .magic:
00000000, .owner: <none>/-1,
.owner_cpu: 0
[ 4304.857421] [<
800110ad>] (unwind_backtrace+0x1/0x90) from
[<
8022c847>] (do_raw_spin_lock+0x17/0xfc)
[ 4304.875213] [<
8022c847>] (do_raw_spin_lock+0x17/0xfc) from
[<
7f97c30f>] (channel_create+0xd6/0x158 [lib_ring_buffer])
[ 4304.894866] [<
7f97c30f>] (channel_create+0xd6/0x158
[lib_ring_buffer]) from [<
7f99856b>] (_channel_create+0x28/0x32
[ltt_ring_buffer_client_discard])
[ 4304.917755] [<
7f99856b>] (_channel_create+0x28/0x32
[ltt_ring_buffer_client_discard]) from [<
7f98b507>]
(ltt_channel_create+0x12a/0x190 [ltt_relay])
[ 4304.940551] [<
7f98b507>] (ltt_channel_create+0x12a/0x190 [ltt_relay])
from [<
7f98c34b>] (lttng_abi_create_channel+0xba/0x158 [ltt_relay])
[ 4304.962341] [<
7f98c34b>] (lttng_abi_create_channel+0xba/0x158
[ltt_relay]) from [<
7f98c43f>] (lttng_session_ioctl+0x56/0x64 [ltt_relay])
[ 4304.984436] [<
7f98c43f>] (lttng_session_ioctl+0x56/0x64 [ltt_relay])
from [<
800baa49>] (do_vfs_ioctl+0x1a5/0x1dc)
[ 4305.004394] [<
800baa49>] (do_vfs_ioctl+0x1a5/0x1dc) from [<
800baab3>]
(sys_ioctl+0x33/0x4c)
[ 4305.022369] [<
800baab3>] (sys_ioctl+0x33/0x4c) from [<
8000c2c1>]
(ret_fast_syscall+0x1/0x50)
All kernel events are enabled in channel channel0
Reported-by: Avik Sil <avik.sil@linaro.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Avik Sil [Mon, 19 Sep 2011 16:38:52 +0000 (12:38 -0400)]
ARM: Set bit 0 for thumb mode in kallsyms_lookup_name returned address (missing file)
Adding missing file in commit
c539a324b020171c10d0fcb100892ac93c17e9e7
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Avik Sil [Mon, 19 Sep 2011 14:59:59 +0000 (10:59 -0400)]
ARM: Set bit 0 for thumb mode in kallsyms_lookup_name returned address
This patch fixes the undefined instruction oops due to execution
of thumb-2 code in ARM mode. The zero bit in the symbol address
returned by kallsyms_lookup_name is not set, leading to switching
to ARM mode that generates oops while executing thumb-2 code. For
detailed discussion, see [1].
[1] http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005176.html
v1:
- include wrapper function kallsyms_lookup_funcptr as suggested
by Dave Martin
Signed-off-by: Avik Sil <avik.sil@linaro.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 19 Sep 2011 14:30:41 +0000 (10:30 -0400)]
Create override for sys_mmap
based on mmap(2).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 19 Sep 2011 14:11:54 +0000 (10:11 -0400)]
Rename syscalls -> syscall in LTTng ABI
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 17 Sep 2011 17:28:35 +0000 (13:28 -0400)]
Use different event name for compat syscalls
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 17 Sep 2011 16:19:05 +0000 (12:19 -0400)]
Allow trace syscall table override
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 17 Sep 2011 16:00:04 +0000 (12:00 -0400)]
Add dummy override files
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 17 Sep 2011 15:59:43 +0000 (11:59 -0400)]
syscall detail: add override capability
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 17 Sep 2011 15:47:33 +0000 (11:47 -0400)]
Add pointer pretty-print heuristics
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 17 Sep 2011 15:46:54 +0000 (11:46 -0400)]
Add __field_hex
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
This page took 0.04421 seconds and 4 git commands to generate.