Motr
M0
trace.h
Go to the documentation of this file.
1
/* -*- C -*- */
2
/*
3
* Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
* For any questions about this software or licensing,
18
* please email opensource@seagate.com or cortx-questions@seagate.com.
19
*
20
*/
21
22
23
#pragma once
24
25
#ifndef __MOTR_LIB_USERSP_TRACE_H__
26
#define __MOTR_LIB_USERSP_TRACE_H__
27
28
#include <stdio.h>
/* FILE */
29
30
#include "
lib/types.h
"
/* pid_t */
31
39
extern
pid_t
m0_pid_cached
;
40
41
enum
m0_trace_parse_flags
{
42
M0_TRACE_PARSE_HEADER_ONLY
= 1 << 0,
43
M0_TRACE_PARSE_YAML_SINGLE_DOC_OUTPUT
= 1 << 1,
44
45
M0_TRACE_PARSE_DEFAULT_FLAGS
= 0
/* all flags off */
46
};
47
48
M0_INTERNAL
int
m0_trace_parse
(FILE *trace_file, FILE *output_file,
49
const
char
*m0tr_ko_path,
50
enum
m0_trace_parse_flags
flags
,
51
const
void
*magic_symbols[],
52
unsigned
int
magic_symbols_nr);
53
54
M0_INTERNAL
void
m0_trace_set_mmapped_buffer
(
bool
val
);
55
56
int
m0_trace_set_buffer_size
(
size_t
size
);
57
59
#endif
/* __MOTR_LIB_USERSP_TRACE_H__ */
60
61
/*
62
* Local variables:
63
* c-indentation-style: "K&R"
64
* c-basic-offset: 8
65
* tab-width: 8
66
* fill-column: 80
67
* scroll-step: 1
68
* End:
69
*/
types.h
flags
int const char const void size_t int flags
Definition:
dir.c:328
val
Definition:
idx_mock.c:52
m0_trace_parse_flags
m0_trace_parse_flags
Definition:
trace.h:41
M0_TRACE_PARSE_DEFAULT_FLAGS
Definition:
trace.h:45
m0_pid_cached
pid_t m0_pid_cached
Definition:
utrace.c:55
m0_trace_set_buffer_size
int m0_trace_set_buffer_size(size_t size)
Definition:
utrace.c:166
size
m0_bcount_t size
Definition:
di.c:39
m0_trace_parse
M0_INTERNAL int m0_trace_parse(FILE *trace_file, FILE *output_file, const char *m0tr_ko_path, enum m0_trace_parse_flags flags, const void *magic_symbols[], unsigned int magic_symbols_nr)
Definition:
utrace.c:527
M0_TRACE_PARSE_HEADER_ONLY
Definition:
trace.h:42
m0_trace_set_mmapped_buffer
M0_INTERNAL void m0_trace_set_mmapped_buffer(bool val)
Definition:
utrace.c:156
M0_TRACE_PARSE_YAML_SINGLE_DOC_OUTPUT
Definition:
trace.h:43
lib
user_space
trace.h
Generated on Thu Apr 14 2022 14:02:56 for Motr by
1.8.14