Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_stack_test.cpp28 EXPECT_EQ(42U, trace->trace[0]); in TestStackTrace()
34 EXPECT_EQ(100U, trace->trace[0]); in TestStackTrace()
35 EXPECT_EQ(101U, trace->trace[1]); in TestStackTrace()
39 EXPECT_EQ(100U, trace->trace[0]); in TestStackTrace()
40 EXPECT_EQ(101U, trace->trace[1]); in TestStackTrace()
41 EXPECT_EQ(42U, trace->trace[2]); in TestStackTrace()
54 EXPECT_EQ(100 + kStackTraceMax + i, trace->trace[i]); in TestTrim()
60 EXPECT_EQ(101 + kStackTraceMax + i, trace->trace[i]); in TestTrim()
62 EXPECT_EQ(42U, trace->trace[kStackTraceMax - 1]); in TestTrim()
77 TestTrim(&trace); in TEST()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stacktrace_test.cpp115 EXPECT_EQ(start_pc, trace.trace[0]); in TEST_F()
117 EXPECT_EQ(PC(i*2 - 1), trace.trace[i]); in TEST_F()
128 EXPECT_EQ(start_pc, trace.trace[0]); in TEST_F()
130 EXPECT_EQ(PC(i*2 - 1), trace.trace[i]); in TEST_F()
140 EXPECT_EQ(start_pc, trace.trace[0]); in TEST_F()
142 EXPECT_EQ(PC(i*2 - 1), trace.trace[i]); in TEST_F()
149 EXPECT_EQ(start_pc, trace.trace[0]); in TEST_F()
166 EXPECT_EQ(PC(0), trace.trace[0]); in TEST_F()
167 EXPECT_EQ(PC(1), trace.trace[1]); in TEST_F()
176 EXPECT_EQ(start_pc, trace.trace[0]); in TEST_F()
[all …]
H A Dsanitizer_stack_store_test.cpp89 StackTrace trace = store_.Load(*(id++)); in TEST_F() local
90 EXPECT_EQ(s.size, trace.size); in TEST_F()
91 EXPECT_EQ(s.tag, trace.tag); in TEST_F()
92 EXPECT_EQ(std::vector<uptr>(s.trace, s.trace + s.size), in TEST_F()
93 std::vector<uptr>(trace.trace, trace.trace + trace.size)); in TEST_F()
169 StackTrace trace = store_.Load(*(id++)); in TEST_P() local
170 EXPECT_EQ(s.size, trace.size); in TEST_P()
171 EXPECT_EQ(s.tag, trace.tag); in TEST_P()
172 EXPECT_EQ(std::vector<uptr>(s.trace, s.trace + s.size), in TEST_P()
173 std::vector<uptr>(trace.trace, trace.trace + trace.size)); in TEST_P()
/llvm-project-15.0.7/lld/test/ELF/
H A Dtrace-symbols.s2 # Test -y symbol and -trace-symbol=symbol
6 # RUN: %p/Inputs/trace-symbols-foo-weak.s -o %t1
8 # RUN: %p/Inputs/trace-symbols-foo-strong.s -o %t2
21 # RUN: ld.lld -y foo -trace-symbol common -trace-symbol=hsymbol \
25 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
29 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
39 # REFLAST: trace-symbols.s.tmp: reference to foo
41 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
68 # ARCHIVEDCOMMON-NOT: trace-symbols.s.tmp1.a(trace-symbols.s.tmp1): definition of \
73 # ARCHIVED1FOO: trace-symbols.s.tmp1.a(trace-symbols.s.tmp1): definition of foo
[all …]
H A Dtime-trace.s4 # Test implicit trace file name
5 # RUN: ld.lld --time-trace --time-trace-granularity=0 -o %t1.elf %t.o
6 # RUN: cat %t1.elf.time-trace \
10 # Test specified trace file name
11 # RUN: ld.lld --time-trace=%t2.json --time-trace-granularity=0 -o %t2.elf %t.o
16 # Test trace requested to stdout
17 # RUN: ld.lld --time-trace=- --time-trace-granularity=0 -o %t3.elf %t.o \
/llvm-project-15.0.7/lldb/test/API/lang/c/register_variables/
H A DTestRegisterVariables.py125 self.trace("\nchecking {}...".format(var_name))
127 self.trace("{} cannot be found".format(var_name))
133 self.trace("checking value...")
135 self.trace("value is invalid")
138 self.trace("value is {}".format(value))
147 self.trace("checking address...")
162 if trace:
172 self.trace("checking value...")
174 if trace:
178 if trace:
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/
H A Dpp-trace.rst1 .. index:: pp-trace
4 pp-trace User's Manual
20 pp-trace Usage
26 ``pp-trace [<pp-trace-options>] <source-file> [-- <front-end-options>]``
82 By default, pp-trace outputs the trace information to stdout. Use this
87 pp-trace Output Format
635 …g/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:5", "D:/Clang/llvm/clang-tools-extra/t…
653 …ng/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:2", ":/Clang/llvm/clang-tools-extra/t…
674 …g/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:4", "D:/Clang/llvm/clang-tools-extra/t…
697 …g/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:10:4", "D:/Clang/llvm/clang-tools-extra/…
[all …]
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Ddebugging.cpp22 void **trace, unsigned long trace_size);
25 const char **name, int *parent_tid, void **trace,
74 void *trace[16] = {0}; in __tsan_on_report() local
76 __tsan_get_report_mop(report, 0, &tid, &addr, &size, &write, &atomic, trace, in __tsan_on_report()
81 fprintf(stderr, "trace[0] = %p, trace[1] = %p\n", trace[0], trace[1]); in __tsan_on_report()
84 __tsan_get_report_mop(report, 1, &tid, &addr, &size, &write, &atomic, trace, in __tsan_on_report()
89 fprintf(stderr, "trace[0] = %p, trace[1] = %p\n", trace[0], trace[1]); in __tsan_on_report()
100 __tsan_get_report_thread(report, 0, &tid, &os_id, &running, &name, &parent_tid, trace, 16); in __tsan_on_report()
104 __tsan_get_report_thread(report, 1, &tid, &os_id, &running, &name, &parent_tid, trace, 16); in __tsan_on_report()
H A Ddebug_alloc_stack.cpp17 extern "C" int __tsan_get_alloc_stack(void *addr, void **trace, size_t size,
49 void *trace[100]; in main() local
54 __tsan_get_alloc_stack(mem, trace, num_frames, &thread_id, &thread_os_id); in main()
63 fprintf(stderr, "%p\n", trace[0]); in main()
65 fprintf(stderr, "%p\n", trace[1]); in main()
67 fprintf(stderr, "%p\n", trace[2]); in main()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/
H A Ddebug_stacks.cpp34 void *trace[100]; in main() local
37 num_frames = __asan_get_alloc_stack(mem, trace, num_frames, &thread_id); in main()
44 fprintf(stderr, "0x" PTR "\n", trace[0]); in main()
46 fprintf(stderr, "0x" PTR "\n", trace[1]); in main()
50 num_frames = __asan_get_free_stack(mem, trace, num_frames, &thread_id); in main()
57 fprintf(stderr, "0x" PTR "\n", trace[0]); in main()
59 fprintf(stderr, "0x" PTR "\n", trace[1]); in main()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.cpp84 Trace* trace = &thr->tctx->trace; in TracePartAlloc() local
126 if (auto trace = part->trace) in TraceResetForTesting() local
149 auto trace = &tctx->trace; in DoResetImpl() local
184 if (trace->parts_allocated > trace->parts.Size()) { in DoResetImpl()
186 trace->parts_allocated - trace->parts.Size(); in DoResetImpl()
187 trace->parts_allocated = trace->parts.Size(); in DoResetImpl()
323 auto* trace = &thr->tctx->trace; in SlotDetachImpl() local
907 Trace *trace = &thr->tctx->trace; in TraceSkipGap() local
912 trace, trace->parts.Front(), part, pos); in TraceSkipGap()
956 Trace* trace = &thr->tctx->trace; in TraceSwitchPartImpl() local
[all …]
H A Dtsan_debugging.cpp55 static void CopyTrace(SymbolizedStack *first_frame, void **trace, in CopyTrace() argument
60 trace[i++] = (void *)frame->info.address; in CopyTrace()
98 int __tsan_get_report_stack(void *report, uptr idx, void **trace, in __tsan_get_report_stack() argument
103 if (stack) CopyTrace(stack->frames, trace, trace_size); in __tsan_get_report_stack()
119 if (mop->stack) CopyTrace(mop->stack->frames, trace, trace_size); in __tsan_get_report_mop()
126 int *fd, int *suppressable, void **trace, in __tsan_get_report_loc() argument
138 if (loc->stack) CopyTrace(loc->stack->frames, trace, trace_size); in __tsan_get_report_loc()
161 if (mutex->stack) CopyTrace(mutex->stack->frames, trace, trace_size); in __tsan_get_report_mutex()
168 void **trace, uptr trace_size) { in __tsan_get_report_thread() argument
177 if (thread->stack) CopyTrace(thread->stack->frames, trace, trace_size); in __tsan_get_report_thread()
[all …]
H A Dtsan_rtl_report.cpp96 if (stack.trace == nullptr) in SymbolizeStackId()
102 if (trace.size == 0) in SymbolizeStack()
106 const uptr pc = trace.trace[si]; in SymbolizeStack()
362 DCHECK_EQ(part->trace, trace); in TraceReplay()
403 part = trace->parts.Next(part); in TraceReplay()
461 Trace *trace = &tctx->trace; in RestoreStack() local
467 Lock lock(&trace->mtx); in RestoreStack()
473 last_part = trace->parts.Back(); in RestoreStack()
474 last_pos = trace->final_pos; in RestoreStack()
679 if (trace.trace[j] == s->pc_or_addr) { in IsFiredSuppression()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/
H A DTraceTests.cpp82 auto JSONTracer = trace::createJSONTracer(OS); in TEST()
83 trace::Session Session(*JSONTracer); in TEST()
85 trace::Span Tracer("A"); in TEST()
86 trace::log("B"); in TEST()
132 trace::TestTracer Tracer; in TEST()
137 trace::Span SpanWithLat(OpName); in TEST()
148 trace::Metric Dist = {"dist", trace::Metric::Distribution, "lbl"};
149 trace::Metric Counter = {"cnt", trace::Metric::Counter};
161 std::unique_ptr<trace::EventTracer> Tracer;
162 trace::Session Session;
[all …]
/llvm-project-15.0.7/llvm/docs/HistoricalNotes/
H A D2003-06-25-Reoptimizer1.txt60 exit edge from the hot trace is less than 10% of the number of
87 When we finally generate an optimized trace we first copy the code
91 the instrumented code are modified to have a branch to the trace
109 trace cache.
112 overwrite with trace-cache code. The trace manager keeps track of
113 whether or not we have enough space in the trace cache, etc.
122 trace. This is because at some point the trace cache may run out of
124 the trace would also have to be removed. It uses a round-robin
127 trace in.)
129 We cannot deal with discontiguous trace cache areas. The trace cache
[all …]
H A D2003-06-26-Reoptimizer2.txt11 for the modified trace (so it would not, for instance, support
17 trace cache.
20 register allocation on just the trace, and stitch the trace back into
22 it does its register allocation. (On exits from the trace we have
40 spilling registers, normally allocated on the stack, if the trace
42 disable trace generation on functions that have variable-sized
43 alloca()s. Variable-sized allocas in the trace would also probably
98 2. Section 0 is the trace prolog, consisting mainly of live-ins and
101 3. Section 1 is the trace itself, in SSA form used by BinInterface,
104 Each branch (i.e., out of the trace) is annotated with the
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/Linux/
H A DIntelPTThreadTraceCollection.cpp36 Expected<IntelPTSingleBufferTrace> trace = in TraceStart() local
38 if (!trace) in TraceStart()
39 return trace.takeError(); in TraceStart()
41 m_total_buffer_size += trace->GetIptTraceSize(); in TraceStart()
42 m_thread_traces.try_emplace(tid, std::move(*trace)); in TraceStart()
86 if (Expected<IntelPTSingleBufferTrace &> trace = in TryGetBinaryData() local
88 return trace->GetIptTrace(); in TryGetBinaryData()
90 return trace.takeError(); in TryGetBinaryData()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_debugging.cpp55 static void CopyTrace(SymbolizedStack *first_frame, void **trace, in CopyTrace() argument
60 trace[i++] = (void *)frame->info.address; in CopyTrace()
98 int __tsan_get_report_stack(void *report, uptr idx, void **trace, in __tsan_get_report_stack() argument
103 if (stack) CopyTrace(stack->frames, trace, trace_size); in __tsan_get_report_stack()
119 if (mop->stack) CopyTrace(mop->stack->frames, trace, trace_size); in __tsan_get_report_mop()
126 int *fd, int *suppressable, void **trace, in __tsan_get_report_loc() argument
138 if (loc->stack) CopyTrace(loc->stack->frames, trace, trace_size); in __tsan_get_report_loc()
161 if (mutex->stack) CopyTrace(mutex->stack->frames, trace, trace_size); in __tsan_get_report_mutex()
168 void **trace, uptr trace_size) { in __tsan_get_report_thread() argument
177 if (thread->stack) CopyTrace(thread->stack->frames, trace, trace_size); in __tsan_get_report_thread()
[all …]
H A Dtsan_rtl_report.cpp96 if (stack.trace == nullptr) in SymbolizeStackId()
102 if (trace.size == 0) in SymbolizeStack()
106 const uptr pc = trace.trace[si]; in SymbolizeStack()
395 Trace* trace = ThreadTrace(tid); in RestoreStack() local
396 ReadLock l(&trace->mtx); in RestoreStack()
465 DCHECK_EQ(part->trace, trace); in TraceReplay()
548 Trace *trace = &tctx->trace; in RestoreStack() local
554 Lock lock(&trace->mtx); in RestoreStack()
559 last_pos = trace->final_pos; in RestoreStack()
786 if (trace.trace[j] == s->pc_or_addr) { in IsFiredSuppression()
[all …]
/llvm-project-15.0.7/lldb/docs/use/
H A Dintel_pt.rst78 > thread trace dump instructions
97 Configuring the trace size
108 thread trace start all -s <size_in_bytes>
119 thread trace dump instructions -c <count>
131 thread trace dump instructions 8
143 thread trace dump instructions
177 For that, the command trace load is useful.
179 the definition of the trace session.
199 "iptTrace": "trace.file" # raw thread-specific trace from the AUX buffer
226 trace schema intel-pt
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/TraceExporter/docs/
H A Dhtr.rst3 …is the way lldb represents a summarized trace internally. HTR efficiently stores trace data and al…
7 **Block:** One or more contiguous units of the trace. At minimum, the unit of a trace is the load a…
11 **Layer:** The representation of trace data between passes. For Intel PT there are two types of lay…
13 …**Instruction Layer:** Composed of the load addresses of the instructions in the trace. In an effo…
14 …metadata is only stored for instructions that are of interest, not every instruction in the trace.…
21 …t generates a new *layer* that is a more summarized, consolidated representation of the trace data.
22 … specific purpose - for example, a pass designed to summarize a processor trace by function calls …
24 The image below illusrates the transformation of a trace's representation (HTR)
31trace representation into a new *layer*. The idea is to have a series of passes where each pass sp…
/llvm-project-15.0.7/lld/test/ELF/lto/
H A Dthinlto-time-trace.ll3 ; Test ThinLTO with time trace
8 ; RUN: ld.lld --thinlto-jobs=1 --time-trace --time-trace-granularity=0 -shared %t1.o %t2.o -o %t3.so
9 ; RUN: cat %t3.so.time-trace \
14 ; RUN: ld.lld --time-trace --time-trace-granularity=0 -shared %t1.o %t2.o -o %t4.so
15 ; RUN: cat %t4.so.time-trace \
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_debugging.cpp50 uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument
66 if (trace && size) { in AsanGetStack()
69 trace[i] = StackTrace::GetPreviousInstructionPc(stack.trace[i]); in AsanGetStack()
132 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument
133 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack()
137 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument
138 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace.h43 const uptr *trace; member
52 StackTrace() : trace(nullptr), size(0), tag(0) {} in StackTrace()
53 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace()
54 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace()
55 : trace(trace), size(size), tag(tag) {} in StackTrace()
/llvm-project-15.0.7/lldb/test/API/python_api/function_symbol/
H A DTestDisasmAPI.py38 self.trace("breakpoint1:", breakpoint1)
39 self.trace("breakpoint2:", breakpoint2)
64 self.trace("address1:", address1)
103 self.trace("sa1:", sa1)
104 self.trace("sa1.GetFileAddress():", hex(sa1.GetFileAddress()))
106 self.trace("sa2:", sa2)
107 self.trace("sa2.GetFileAddress():", hex(sa2.GetFileAddress()))

12345678910>>...16