Skip to content

Commit 5d24fef

Browse files
committed
Update valgrind suppressions for Linux.
1 parent e3699b5 commit 5d24fef

File tree

2 files changed

+15
-46
lines changed

2 files changed

+15
-46
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,13 @@ perf: $(STANDALONE_TARGET)
138138
hotspot perf.data
139139
rm perf.data
140140

141+
# VALGRIND_FLAGS += --gen-suppressions=all
142+
VALGRIND_FLAGS += --suppressions=valgrind.supp
143+
# VALGRIND_FLAGS += --leak-check=full
144+
VALGRIND_FLAGS += --track-origins=yes
145+
VALGRIND_FLAGS += --exit-on-first-error=yes
141146
valgrind: $(STANDALONE_TARGET)
142-
# --gen-suppressions=yes
143-
# --leak-check=full
144-
valgrind --suppressions=valgrind.supp ./$< -d
147+
valgrind $(VALGRIND_FLAGS) ./$< -d
145148

146149
clean:
147150
rm -rfv build dist $(TARGET) $(STANDALONE_TARGET) *.a

valgrind.supp

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,20 @@
11
{
2-
<insert_a_suppression_name_here>
3-
Memcheck:Addr8
4-
...
5-
obj:/usr/lib/dri/i965_dri.so
6-
...
7-
}
8-
{
9-
<insert_a_suppression_name_here>
10-
Memcheck:Addr4
11-
...
12-
obj:/usr/lib/dri/i965_dri.so
13-
...
14-
}
15-
{
16-
<insert_a_suppression_name_here>
17-
Memcheck:Addr2
18-
...
19-
obj:/usr/lib/dri/i965_dri.so
20-
...
21-
}
22-
{
23-
<insert_a_suppression_name_here>
24-
Memcheck:Addr1
25-
...
26-
obj:/usr/lib/dri/i965_dri.so
27-
...
28-
}
29-
30-
31-
{
32-
<insert_a_suppression_name_here>
33-
Memcheck:Leak
34-
match-leak-kinds: possible
35-
...
36-
obj:/usr/lib/libasound.so.2.0.0
2+
<PulseAudio>
3+
Memcheck:Cond
374
...
5+
fun:pa_mainloop_run
386
}
397
{
40-
<insert_a_suppression_name_here>
41-
Memcheck:Leak
42-
match-leak-kinds: definite
8+
<Mesa>
9+
Memcheck:Cond
4310
...
44-
obj:/usr/lib/libgtk-x11-2.0.so.0.2400.32
11+
obj:/usr/lib/libgallium*
4512
...
4613
}
4714
{
48-
<insert_a_suppression_name_here>
49-
Memcheck:Leak
50-
match-leak-kinds: possible
15+
<Mesa>
16+
Memcheck:Cond
5117
...
52-
obj:/usr/lib/libgobject-2.0.so.0.5800.3
18+
obj:/usr/lib/libGLX_mesa*
5319
...
5420
}

0 commit comments

Comments
 (0)