Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: src/third_party/kernel/tools/perf/util/jitdump.h

Issue 337093005: Revert 22098 "Linux perf tool support update + refactoring." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/perf-jit.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef JITDUMP_H
2 #define JITDUMP_H
3
4 #include <sys/time.h>
5 #include <time.h>
6 #include <stdint.h>
7
8 /* JiTD */
9 #define JITHEADER_MAGIC 0x4A695444
10 #define JITHEADER_MAGIC_SW 0x4454694A
11
12 #define PADDING_8ALIGNED(x) ((((x) + 7) & 7) ^ 7)
13
14 #define JITHEADER_VERSION 1
15
16 struct jitheader {
17 uint32_t magic; /* characters "jItD" */
18 uint32_t version; /* header version */
19 uint32_t total_size; /* total size of header */
20 uint32_t elf_mach; /* elf mach target */
21 uint32_t pad1; /* reserved */
22 uint32_t pid; /* JIT process id */
23 uint64_t timestamp; /* timestamp */
24 };
25
26 enum jit_record_type {
27 JIT_CODE_LOAD = 0,
28 JIT_CODE_MOVE = 1,
29 JIT_CODE_DEBUG_INFO = 2,
30 JIT_CODE_CLOSE = 3,
31
32 JIT_CODE_MAX
33 };
34
35 /* record prefix (mandatory in each record) */
36 struct jr_prefix {
37 uint32_t id;
38 uint32_t total_size;
39 uint64_t timestamp;
40 };
41
42 struct jr_code_load {
43 struct jr_prefix p;
44
45 uint32_t pid;
46 uint32_t tid;
47 uint64_t vma;
48 uint64_t code_addr;
49 uint64_t code_size;
50 uint64_t code_index;
51 };
52
53 struct jr_code_close {
54 struct jr_prefix p;
55 };
56
57 struct jr_code_move {
58 struct jr_prefix p;
59
60 uint32_t pid;
61 uint32_t tid;
62 uint64_t vma;
63 uint64_t old_code_addr;
64 uint64_t new_code_addr;
65 uint64_t code_size;
66 uint64_t code_index;
67 };
68
69 struct jr_code_debug_info {
70 struct jr_prefix p;
71
72 uint64_t code_addr;
73 uint64_t nr_entry;
74 };
75
76 union jr_entry {
77 struct jr_code_debug_info info;
78 struct jr_code_close close;
79 struct jr_code_load load;
80 struct jr_code_move move;
81 struct jr_prefix prefix;
82 };
83
84 #endif /* !JITDUMP_H */
85
OLDNEW
« no previous file with comments | « src/perf-jit.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698