-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each lttng buffer configuration (discard mode, overwrite mode, mmap support, splice support, per-cpu buffers, global buffer for metadata) is a lib ring buffer client. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Mathieu Desnoyers
authored and
Greg Kroah-Hartman
committed
Nov 29, 2011
1 parent
54a69e5
commit 6857797
Showing
8 changed files
with
1,025 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* ltt-ring-buffer-client-discard.c | ||
* | ||
* Copyright (C) 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
* | ||
* LTTng lib ring buffer client (discard mode). | ||
* | ||
* Dual LGPL v2.1/GPL v2 license. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include "ltt-tracer.h" | ||
|
||
#define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_DISCARD | ||
#define RING_BUFFER_MODE_TEMPLATE_STRING "discard" | ||
#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_SPLICE | ||
#include "ltt-ring-buffer-client.h" | ||
|
||
MODULE_LICENSE("GPL and additional rights"); | ||
MODULE_AUTHOR("Mathieu Desnoyers"); | ||
MODULE_DESCRIPTION("LTTng Ring Buffer Client Discard Mode"); |
21 changes: 21 additions & 0 deletions
21
drivers/staging/lttng/ltt-ring-buffer-client-mmap-discard.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* ltt-ring-buffer-client-discard.c | ||
* | ||
* Copyright (C) 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
* | ||
* LTTng lib ring buffer client (discard mode). | ||
* | ||
* Dual LGPL v2.1/GPL v2 license. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include "ltt-tracer.h" | ||
|
||
#define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_DISCARD | ||
#define RING_BUFFER_MODE_TEMPLATE_STRING "discard-mmap" | ||
#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_MMAP | ||
#include "ltt-ring-buffer-client.h" | ||
|
||
MODULE_LICENSE("GPL and additional rights"); | ||
MODULE_AUTHOR("Mathieu Desnoyers"); | ||
MODULE_DESCRIPTION("LTTng Ring Buffer Client Discard Mode"); |
21 changes: 21 additions & 0 deletions
21
drivers/staging/lttng/ltt-ring-buffer-client-mmap-overwrite.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* ltt-ring-buffer-client-overwrite.c | ||
* | ||
* Copyright (C) 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
* | ||
* LTTng lib ring buffer client (overwrite mode). | ||
* | ||
* Dual LGPL v2.1/GPL v2 license. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include "ltt-tracer.h" | ||
|
||
#define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_OVERWRITE | ||
#define RING_BUFFER_MODE_TEMPLATE_STRING "overwrite-mmap" | ||
#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_MMAP | ||
#include "ltt-ring-buffer-client.h" | ||
|
||
MODULE_LICENSE("GPL and additional rights"); | ||
MODULE_AUTHOR("Mathieu Desnoyers"); | ||
MODULE_DESCRIPTION("LTTng Ring Buffer Client Overwrite Mode"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* ltt-ring-buffer-client-overwrite.c | ||
* | ||
* Copyright (C) 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
* | ||
* LTTng lib ring buffer client (overwrite mode). | ||
* | ||
* Dual LGPL v2.1/GPL v2 license. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include "ltt-tracer.h" | ||
|
||
#define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_OVERWRITE | ||
#define RING_BUFFER_MODE_TEMPLATE_STRING "overwrite" | ||
#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_SPLICE | ||
#include "ltt-ring-buffer-client.h" | ||
|
||
MODULE_LICENSE("GPL and additional rights"); | ||
MODULE_AUTHOR("Mathieu Desnoyers"); | ||
MODULE_DESCRIPTION("LTTng Ring Buffer Client Overwrite Mode"); |
Oops, something went wrong.