Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bpftrace
Commits
c1dd4189
Commit
c1dd4189
authored
Feb 07, 2019
by
Brendan Gregg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make map stack indentation 4 chars
parent
90e5443a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
README.md
README.md
+19
-19
src/mapkey.cpp
src/mapkey.cpp
+2
-2
No files found.
README.md
View file @
c1dd4189
...
@@ -75,27 +75,27 @@ Attaching 1 probe...
...
@@ -75,27 +75,27 @@ Attaching 1 probe...
...
...
@[
@[
queue_work_on+41
queue_work_on+41
tty_flip_buffer_push+43
tty_flip_buffer_push+43
pty_write+83
pty_write+83
n_tty_write+434
n_tty_write+434
tty_write+444
tty_write+444
__vfs_write+55
__vfs_write+55
vfs_write+177
vfs_write+177
sys_write+85
sys_write+85
entry_SYSCALL_64_fastpath+26
entry_SYSCALL_64_fastpath+26
]: 97
]: 97
@[
@[
cpuidle_enter_state+299
cpuidle_enter_state+299
cpuidle_enter+23
cpuidle_enter+23
call_cpuidle+35
call_cpuidle+35
do_idle+394
do_idle+394
cpu_startup_entry+113
cpu_startup_entry+113
rest_init+132
rest_init+132
start_kernel+1083
start_kernel+1083
x86_64_start_reservations+41
x86_64_start_reservations+41
x86_64_start_kernel+323
x86_64_start_kernel+323
verify_cpu+0
verify_cpu+0
]: 150
]: 150
```
```
...
...
src/mapkey.cpp
View file @
c1dd4189
...
@@ -72,9 +72,9 @@ std::string MapKey::argument_value(BPFtrace &bpftrace,
...
@@ -72,9 +72,9 @@ std::string MapKey::argument_value(BPFtrace &bpftrace,
}
}
break
;
break
;
case
Type
:
:
kstack
:
case
Type
:
:
kstack
:
return
bpftrace
.
get_stack
(
*
(
uint64_t
*
)
data
,
false
);
return
bpftrace
.
get_stack
(
*
(
uint64_t
*
)
data
,
false
,
4
);
case
Type
:
:
ustack
:
case
Type
:
:
ustack
:
return
bpftrace
.
get_stack
(
*
(
uint64_t
*
)
data
,
true
);
return
bpftrace
.
get_stack
(
*
(
uint64_t
*
)
data
,
true
,
4
);
case
Type
:
:
ksym
:
case
Type
:
:
ksym
:
return
bpftrace
.
resolve_ksym
(
*
(
uint64_t
*
)
data
);
return
bpftrace
.
resolve_ksym
(
*
(
uint64_t
*
)
data
);
case
Type
:
:
usym
:
case
Type
:
:
usym
:
...
...
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