Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
06e5f82b
Commit
06e5f82b
authored
Apr 30, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
d7cc4ba3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
clock-res/src/tracer.c
clock-res/src/tracer.c
+4
-4
No files found.
clock-res/src/tracer.c
View file @
06e5f82b
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
static
char
*
fileprefix
;
static
char
*
fileprefix
;
static
char
*
procfileprefix
=
"/proc/sys/kernel/"
;
static
char
*
procfileprefix
=
"/proc/sys/kernel/"
;
static
char
*
traceroptions
=
"trace_options"
;
static
int
trace_fd
=
-
1
;
static
int
trace_fd
=
-
1
;
static
int
kernvar
(
int
mode
,
const
char
*
name
,
char
*
value
,
static
int
kernvar
(
int
mode
,
const
char
*
name
,
char
*
value
,
...
@@ -95,11 +94,12 @@ static int settracer(char *tracer) {
...
@@ -95,11 +94,12 @@ static int settracer(char *tracer) {
void
setup_tracer
(
void
)
{
void
setup_tracer
(
void
)
{
int
ret
;
fileprefix
=
procfileprefix
;
setkernvar
(
"ftrace_enabled"
,
"1"
);
// Clear old traces by setting tracer to nop first
// Clear old traces by setting tracer to nop first
ret
=
settracer
(
"nop"
);
settracer
(
"nop"
);
ret
=
settracer
(
"function"
);
settracer
(
"function"
);
/* open the tracing on file descriptor */
/* open the tracing on file descriptor */
if
(
trace_fd
==
-
1
)
{
if
(
trace_fd
==
-
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment