projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop support for kernels < 4.4 from workqueue instrumentation
[lttng-modules.git]
/
include
/
ringbuffer
/
frontend_api.h
diff --git
a/include/ringbuffer/frontend_api.h
b/include/ringbuffer/frontend_api.h
index 1444e60adc1350234e405e164f8b8662654386c6..b473a61b60407859366fd7965a2e548f23357a70 100644
(file)
--- a/
include/ringbuffer/frontend_api.h
+++ b/
include/ringbuffer/frontend_api.h
@@
-14,7
+14,7
@@
#define _LIB_RING_BUFFER_FRONTEND_API_H
#include <ringbuffer/frontend.h>
#define _LIB_RING_BUFFER_FRONTEND_API_H
#include <ringbuffer/frontend.h>
-#include <
wrapper
/percpu-defs.h>
+#include <
linux
/percpu-defs.h>
#include <linux/errno.h>
#include <linux/prefetch.h>
#include <linux/errno.h>
#include <linux/prefetch.h>
@@
-33,7
+33,7
@@
* section.
*/
static inline
* section.
*/
static inline
-int lib_ring_buffer_get_cpu(const struct l
ib
_ring_buffer_config *config)
+int lib_ring_buffer_get_cpu(const struct l
ttng_kernel
_ring_buffer_config *config)
{
int cpu, nesting;
{
int cpu, nesting;
@@
-55,10
+55,10
@@
int lib_ring_buffer_get_cpu(const struct lib_ring_buffer_config *config)
* lib_ring_buffer_put_cpu - Follows ring buffer reserve/commit.
*/
static inline
* lib_ring_buffer_put_cpu - Follows ring buffer reserve/commit.
*/
static inline
-void lib_ring_buffer_put_cpu(const struct l
ib
_ring_buffer_config *config)
+void lib_ring_buffer_put_cpu(const struct l
ttng_kernel
_ring_buffer_config *config)
{
barrier();
{
barrier();
- (*
lttng_
this_cpu_ptr(&lib_ring_buffer_nesting))--;
+ (*this_cpu_ptr(&lib_ring_buffer_nesting))--;
rcu_read_unlock_sched_notrace();
}
rcu_read_unlock_sched_notrace();
}
@@
-69,14
+69,14
@@
void lib_ring_buffer_put_cpu(const struct lib_ring_buffer_config *config)
* returns 0 if reserve ok, or 1 if the slow path must be taken.
*/
static inline
* returns 0 if reserve ok, or 1 if the slow path must be taken.
*/
static inline
-int lib_ring_buffer_try_reserve(const struct l
ib
_ring_buffer_config *config,
- struct l
ib
_ring_buffer_ctx *ctx,
+int lib_ring_buffer_try_reserve(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct l
ttng_kernel
_ring_buffer_ctx *ctx,
void *client_ctx,
unsigned long *o_begin, unsigned long *o_end,
unsigned long *o_old, size_t *before_hdr_pad)
{
void *client_ctx,
unsigned long *o_begin, unsigned long *o_end,
unsigned long *o_old, size_t *before_hdr_pad)
{
- struct channel *chan = ctx->priv.chan;
- struct l
ib
_ring_buffer *buf = ctx->priv.buf;
+ struct
lttng_kernel_ring_buffer_
channel *chan = ctx->priv.chan;
+ struct l
ttng_kernel
_ring_buffer *buf = ctx->priv.buf;
*o_begin = v_read(config, &buf->offset);
*o_old = *o_begin;
*o_begin = v_read(config, &buf->offset);
*o_old = *o_begin;
@@
-139,12
+139,12
@@
int lib_ring_buffer_try_reserve(const struct lib_ring_buffer_config *config,
*/
static inline
*/
static inline
-int lib_ring_buffer_reserve(const struct l
ib
_ring_buffer_config *config,
- struct l
ib
_ring_buffer_ctx *ctx,
+int lib_ring_buffer_reserve(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct l
ttng_kernel
_ring_buffer_ctx *ctx,
void *client_ctx)
{
void *client_ctx)
{
- struct channel *chan = ctx->priv.chan;
- struct l
ib
_ring_buffer *buf;
+ struct
lttng_kernel_ring_buffer_
channel *chan = ctx->priv.chan;
+ struct l
ttng_kernel
_ring_buffer *buf;
unsigned long o_begin, o_end, o_old;
size_t before_hdr_pad = 0;
unsigned long o_begin, o_end, o_old;
size_t before_hdr_pad = 0;
@@
-211,8
+211,8
@@
slow_path:
* disabled, for RING_BUFFER_SYNC_PER_CPU configuration.
*/
static inline
* disabled, for RING_BUFFER_SYNC_PER_CPU configuration.
*/
static inline
-void lib_ring_buffer_switch(const struct l
ib
_ring_buffer_config *config,
- struct l
ib
_ring_buffer *buf, enum switch_mode mode)
+void lib_ring_buffer_switch(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct l
ttng_kernel
_ring_buffer *buf, enum switch_mode mode)
{
lib_ring_buffer_switch_slow(buf, mode);
}
{
lib_ring_buffer_switch_slow(buf, mode);
}
@@
-228,11
+228,11
@@
void lib_ring_buffer_switch(const struct lib_ring_buffer_config *config,
* specified sub-buffer, and delivers it if necessary.
*/
static inline
* specified sub-buffer, and delivers it if necessary.
*/
static inline
-void lib_ring_buffer_commit(const struct l
ib
_ring_buffer_config *config,
- const struct l
ib
_ring_buffer_ctx *ctx)
+void lib_ring_buffer_commit(const struct l
ttng_kernel
_ring_buffer_config *config,
+ const struct l
ttng_kernel
_ring_buffer_ctx *ctx)
{
{
- struct channel *chan = ctx->priv.chan;
- struct l
ib
_ring_buffer *buf = ctx->priv.buf;
+ struct
lttng_kernel_ring_buffer_
channel *chan = ctx->priv.chan;
+ struct l
ttng_kernel
_ring_buffer *buf = ctx->priv.buf;
unsigned long offset_end = ctx->priv.buf_offset;
unsigned long endidx = subbuf_index(offset_end - 1, chan);
unsigned long commit_count;
unsigned long offset_end = ctx->priv.buf_offset;
unsigned long endidx = subbuf_index(offset_end - 1, chan);
unsigned long commit_count;
@@
-280,7
+280,7
@@
void lib_ring_buffer_commit(const struct lib_ring_buffer_config *config,
commit_count = v_read(config, &cc_hot->cc);
lib_ring_buffer_check_deliver(config, buf, chan, offset_end - 1,
commit_count = v_read(config, &cc_hot->cc);
lib_ring_buffer_check_deliver(config, buf, chan, offset_end - 1,
- commit_count, endidx, ctx
->priv.tsc
);
+ commit_count, endidx, ctx);
/*
* Update used size at each commit. It's needed only for extracting
* ring_buffer buffers from vmcore, after crash.
/*
* Update used size at each commit. It's needed only for extracting
* ring_buffer buffers from vmcore, after crash.
@@
-300,10
+300,10
@@
void lib_ring_buffer_commit(const struct lib_ring_buffer_config *config,
* Returns 0 upon success, -EPERM if the record cannot be discarded.
*/
static inline
* Returns 0 upon success, -EPERM if the record cannot be discarded.
*/
static inline
-int lib_ring_buffer_try_discard_reserve(const struct l
ib
_ring_buffer_config *config,
- const struct l
ib
_ring_buffer_ctx *ctx)
+int lib_ring_buffer_try_discard_reserve(const struct l
ttng_kernel
_ring_buffer_config *config,
+ const struct l
ttng_kernel
_ring_buffer_ctx *ctx)
{
{
- struct l
ib
_ring_buffer *buf = ctx->priv.buf;
+ struct l
ttng_kernel
_ring_buffer *buf = ctx->priv.buf;
unsigned long end_offset = ctx->priv.pre_offset + ctx->priv.slot_size;
/*
unsigned long end_offset = ctx->priv.pre_offset + ctx->priv.slot_size;
/*
@@
-328,29
+328,29
@@
int lib_ring_buffer_try_discard_reserve(const struct lib_ring_buffer_config *con
}
static inline
}
static inline
-void channel_record_disable(const struct l
ib
_ring_buffer_config *config,
- struct channel *chan)
+void channel_record_disable(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct
lttng_kernel_ring_buffer_
channel *chan)
{
atomic_inc(&chan->record_disabled);
}
static inline
{
atomic_inc(&chan->record_disabled);
}
static inline
-void channel_record_enable(const struct l
ib
_ring_buffer_config *config,
- struct channel *chan)
+void channel_record_enable(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct
lttng_kernel_ring_buffer_
channel *chan)
{
atomic_dec(&chan->record_disabled);
}
static inline
{
atomic_dec(&chan->record_disabled);
}
static inline
-void lib_ring_buffer_record_disable(const struct l
ib
_ring_buffer_config *config,
- struct l
ib
_ring_buffer *buf)
+void lib_ring_buffer_record_disable(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct l
ttng_kernel
_ring_buffer *buf)
{
atomic_inc(&buf->record_disabled);
}
static inline
{
atomic_inc(&buf->record_disabled);
}
static inline
-void lib_ring_buffer_record_enable(const struct l
ib
_ring_buffer_config *config,
- struct l
ib
_ring_buffer *buf)
+void lib_ring_buffer_record_enable(const struct l
ttng_kernel
_ring_buffer_config *config,
+ struct l
ttng_kernel
_ring_buffer *buf)
{
atomic_dec(&buf->record_disabled);
}
{
atomic_dec(&buf->record_disabled);
}
This page took
0.02591 seconds
and
4
git commands to generate.