Skip to content

Commit f874444

Browse files
Costa ShulyupinCosta Shulyupin
authored andcommitted
ignore.txt
1 parent bd39003 commit f874444

File tree

2 files changed

+261
-31
lines changed

2 files changed

+261
-31
lines changed

ignore.txt

Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
AT_FDCWD
2+
BDI_SHOW
3+
BUG
4+
BUG_ON
5+
EAGAIN
6+
EBADF
7+
EBUSY
8+
EFAULT
9+
EINTR
10+
EINVAL
11+
EIO
12+
ENODEV
13+
ENOENT
14+
ENOMEM
15+
ENOSYS
16+
ENOTSUPP
17+
EOPNOTSUPP
18+
EOPNOTSUPP
19+
EPERM
20+
ERR_PTR
21+
ESRCH
22+
FMODE_WRITE
23+
GFP_KERNEL
24+
HPAGE_PMD_NR
25+
INIT_LIST_HEAD
26+
IS_ENABLED
27+
IS_ERR
28+
LOOKUP_EMPTY
29+
LOOKUP_FOLLOW
30+
LOOKUP_REVAL
31+
NAPI_GRO_CB
32+
NODE_DATA
33+
NULL
34+
NUMA_NO_NODE
35+
O_CLOEXEC
36+
O_LARGEFILE
37+
PAGE_MASK
38+
PAGE_SHIFT
39+
PAGE_SIZE
40+
PTR_ERR
41+
PVOP_CALLEE0
42+
PVOP_VCALLEE0
43+
PVOP_VCALLEE1
44+
PageLocked
45+
READ_ONCE
46+
SIGKILL
47+
SIGSTOP
48+
UL
49+
VM_BUG_ON
50+
VM_BUG_ON_PAGE
51+
WARN_ON
52+
WARN_ON_ONCE
53+
XXstart
54+
_RET_IP_
55+
__user
56+
__user
57+
abort_creds
58+
access_ok
59+
addr
60+
aligned
61+
atomic_read
62+
bool
63+
capable
64+
clear_bit
65+
commit_creds
66+
compound_head
67+
cond_resched
68+
container_of
69+
copy_from_user
70+
copy_to_user
71+
cpu_to_le16
72+
cpumask_bits
73+
cred
74+
current
75+
current_cred
76+
current_user_ns
77+
d_inode
78+
defined
79+
dput
80+
end
81+
entry
82+
err
83+
error
84+
f_mode
85+
f_path
86+
false
87+
fd_install
88+
fdget
89+
fdput
90+
file_inode
91+
find_task_by_vpid
92+
flags
93+
get_page
94+
get_timespec64
95+
get_user
96+
getname
97+
i
98+
if
99+
kfree
100+
kzalloc
101+
likely
102+
list
103+
list_add
104+
list_del
105+
list_empty
106+
list_for_each_entry
107+
loff_t
108+
lookup_flags
109+
max
110+
memcpy
111+
memset
112+
min
113+
mutex_lock
114+
mutex_unlock
115+
name
116+
next
117+
nr_pages
118+
ns_capable
119+
offset
120+
old
121+
out
122+
page_to_nid
123+
page_to_pfn
124+
page_zone
125+
path_put
126+
path_put
127+
pci_set_drvdata
128+
percpu_ref_put
129+
pfn
130+
pfn_to_page
131+
pgoff_t
132+
pmd_t
133+
pos
134+
pos_from_hilo
135+
pr_debug
136+
pr_err
137+
pr_info
138+
preempt_disable
139+
preempt_enable
140+
prepare_creds
141+
pte_t
142+
ptl
143+
put_page
144+
put_user
145+
putname
146+
raw_local_irq_save
147+
rcu_read_lock
148+
rcu_read_unlock
149+
read_lock
150+
read_unlock
151+
real_mount
152+
ret
153+
retry
154+
retry_estale
155+
sigdelsetmask
156+
sigset_t
157+
size
158+
size_t
159+
spin_lock
160+
spin_lock_irq
161+
spin_lock_irqsave
162+
spin_unlock
163+
spin_unlock_irq
164+
spin_unlock_irqrestore
165+
spinlock_t
166+
sprintf
167+
ssize_t
168+
ssize_t
169+
swp_entry_t
170+
task_pid_vnr
171+
tasklist_lock
172+
test_bit
173+
trace_hardirqs_off
174+
true
175+
tv_nsec
176+
typeof
177+
u32
178+
u64
179+
u8
180+
unlikely
181+
unlock_page
182+
user_path_at
183+
184+
spin_lock_init
185+
dev_warn
186+
dev_info
187+
dev_err
188+
printk
189+
dma_set_mask_and_coherent
190+
DMA_BIT_MASK
191+
atomic_inc_return
192+
atomic_dec
193+
BUILD_BUG_ON
194+
offsetof
195+
MAJOR
196+
dev_WARN_ONCE
197+
atomic_dec_return
198+
__field
199+
reset
200+
device_add
201+
__acquires
202+
__releases
203+
get_status
204+
pci_err
205+
msleep
206+
ssleep
207+
pci_dev_put
208+
pci_err
209+
__virtio_test_bit
210+
might_sleep
211+
raw_spin_lock_irqsave
212+
raw_spin_unlock_irqrestore
213+
DECLARE_BITMAP
214+
__set_bit
215+
handler
216+
cmpxchg
217+
barrier
218+
llist_for_each_entry
219+
?panic
220+
atomic_set
221+
ndelay
222+
__clear_bit
223+
__attribute__
224+
format
225+
_kstrtoul
226+
_kstrtol
227+
kstrtoull
228+
kstrtoll
229+
__alignof__
230+
local_irq_disable
231+
atomic_cmpxchg
232+
va_start
233+
va_end
234+
atomic_notifier_call_chain
235+
mdelay
236+
local_irq_enable
237+
fprintf
238+
strerror
239+
poweroff
240+
set_bit
241+
pr_fmt
242+
atomic_add
243+
mb
244+
rmb
245+
__get_user
246+
rdtsc
247+
pr_warn
248+
match
249+
__volatile__
250+
asm
251+
__compiletime_error
252+
assert
253+
tracing_on

srcxray.py

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,37 +42,8 @@
4242
import xml.etree.ElementTree as ET
4343

4444
default_root = 'starts'
45-
ignores = ('aligned unlikely typeof u32 '
46-
'PVOP_CALLEE0 PVOP_VCALLEE0 PVOP_VCALLEE1 if trace_hardirqs_off '
47-
'i NULL likely unlikely true false test_bit NAPI_GRO_CB clear_bit '
48-
'atomic_read preempt_disable preempt_enable container_of ENOSYS '
49-
'READ_ONCE u64 u8 _RET_IP_ ret current '
50-
'AT_FDCWD fdput EBADF file_inode '
51-
'ssize_t path_put __user '
52-
'list_empty memcpy size_t loff_t pos d_inode dput copy_to_user EIO bool out IS_ERR '
53-
'EPERM rcu_read_lock rcu_read_unlock spin_lock spin_unlock list_for_each_entry kfree '
54-
'GFP_KERNEL ENOMEM EFAULT ENOENT EAGAIN PTR_ERR PAGE_SHIFT PAGE_SIZE '
55-
'pgoff_t pte_t pmd_t HPAGE_PMD_NR PageLocked entry swp_entry_t next unlock_page spinlock_t end XXstart '
56-
' VM_BUG_ON VM_BUG_ON_PAGE BDI_SHOW max '
57-
'ssize_t path_put __user '
58-
'list_del compound_head list_add cond_resched put_page nr_pages min spin_lock_irqsave IS_ENABLED '
59-
'EBUSY UL NODE_DATA pr_err memset list size ptl PAGE_MASK pr_info offset addr get_page sprintf '
60-
'INIT_LIST_HEAD NUMA_NO_NODE spin_unlock_irqrestore mutex_unlock mutex_lock '
61-
'page_to_nid page_to_pfn pfn page_zone pfn_to_page '
62-
'BUG BUG_ON flags WARN_ON_ONCE ENODEV cpu_to_le16 cpumask_bits '
63-
'ERR_PTR ENOTSUPP EOPNOTSUPP EOPNOTSUPP WARN_ON EINVAL i name '
64-
'sigset_t fdget put_user get_user copy_from_user LOOKUP_FOLLOW LOOKUP_EMPTY EINTR '
65-
'O_CLOEXEC err getname access_ok task_pid_vnr cred '
66-
'percpu_ref_put get_timespec64 sigdelsetmask ns_capable kzalloc capable f_mode O_LARGEFILE pos_from_hilo '
67-
'pr_debug error current_cred ESRCH f_path find_task_by_vpid '
68-
'retry LOOKUP_REVAL retry_estale user_path_at lookup_flags old '
69-
'current_user_ns spin_lock_irq spin_unlock_irq prepare_creds '
70-
'tasklist_lock commit_creds read_lock read_unlock SIGKILL SIGSTOP abort_creds fd_install '
71-
'real_mount FMODE_WRITE tv_nsec putname '
72-
).split() # TODO: move to file
73-
74-
75-
level_limit = 10
45+
ignores = list()
46+
level_limit = 6
7647
limit = 1000
7748
n = 0
7849
cflow_structs = False
@@ -1418,6 +1389,12 @@ def test_1(self):
14181389

14191390

14201391
def main():
1392+
global ignores
1393+
try:
1394+
f = open("ignore.txt")
1395+
ignores = f.read().splitlines()
1396+
except FileNotFoundError:
1397+
pass
14211398
try:
14221399
ret = False
14231400
if len(sys.argv) == 1:

0 commit comments

Comments
 (0)