projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: type description structures
[lttng-modules.git]
/
src
/
lttng-context-callstack-legacy-impl.h
diff --git
a/src/lttng-context-callstack-legacy-impl.h
b/src/lttng-context-callstack-legacy-impl.h
index 8d78fb95700891b0a2f2dc622b6c36b2b5f3fce6..b74b966a21b7c3e74663fdff6b60b827aff7ce67 100644
(file)
--- a/
src/lttng-context-callstack-legacy-impl.h
+++ b/
src/lttng-context-callstack-legacy-impl.h
@@
-56,18
+56,6
@@
static struct lttng_cs_type cs_types[] = {
},
};
},
};
-static
-const char *lttng_cs_ctx_mode_name(enum lttng_cs_ctx_modes mode)
-{
- return cs_types[mode].name;
-}
-
-static
-const char *lttng_cs_ctx_mode_length_name(enum lttng_cs_ctx_modes mode)
-{
- return cs_types[mode].length_name;
-}
-
static
int init_type(enum lttng_cs_ctx_modes mode)
{
static
int init_type(enum lttng_cs_ctx_modes mode)
{
@@
-108,7
+96,7
@@
void lttng_cs_set_init(struct lttng_cs __percpu *cs_set)
DEFINE_PER_CPU(int, callstack_user_nesting);
static
DEFINE_PER_CPU(int, callstack_user_nesting);
static
-struct stack_trace *stack_trace_context(struct lttng_ctx_field *field,
+struct stack_trace *stack_trace_context(struct lttng_
kernel_
ctx_field *field,
struct lib_ring_buffer_ctx *ctx)
{
int buffer_nesting, cs_user_nesting;
struct lib_ring_buffer_ctx *ctx)
{
int buffer_nesting, cs_user_nesting;
@@
-140,7
+128,7
@@
struct stack_trace *stack_trace_context(struct lttng_ctx_field *field,
}
static
}
static
-size_t lttng_callstack_length_get_size(size_t offset, struct lttng_ctx_field *field,
+size_t lttng_callstack_length_get_size(size_t offset, struct lttng_
kernel_
ctx_field *field,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
@@
-156,7
+144,7
@@
size_t lttng_callstack_length_get_size(size_t offset, struct lttng_ctx_field *fi
* resulting callstack is saved to be accessed in the record step.
*/
static
* resulting callstack is saved to be accessed in the record step.
*/
static
-size_t lttng_callstack_sequence_get_size(size_t offset, struct lttng_ctx_field *field,
+size_t lttng_callstack_sequence_get_size(size_t offset, struct lttng_
kernel_
ctx_field *field,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
@@
-201,7
+189,7
@@
size_t lttng_callstack_sequence_get_size(size_t offset, struct lttng_ctx_field *
}
static
}
static
-void lttng_callstack_length_record(struct lttng_ctx_field *field,
+void lttng_callstack_length_record(struct lttng_
kernel_
ctx_field *field,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
@@
-219,7
+207,7
@@
void lttng_callstack_length_record(struct lttng_ctx_field *field,
chan->ops->event_write(ctx, &nr_seq_entries, sizeof(unsigned int));
}
static
chan->ops->event_write(ctx, &nr_seq_entries, sizeof(unsigned int));
}
static
-void lttng_callstack_sequence_record(struct lttng_ctx_field *field,
+void lttng_callstack_sequence_record(struct lttng_
kernel_
ctx_field *field,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
This page took
0.024452 seconds
and
4
git commands to generate.