Home
last modified time | relevance | path

Searched refs:const_str (Results 1 – 1 of 1) sorted by relevance

/base/startup/init/services/modules/seccomp/scripts/
Dgenerate_code_from_policy.py377 def gen_bpf_eq32(const_str, jt, jf): argument
379 bpf_policy.append(BPF_JEQ.format(const_str + ' & 0xffffffff', jt, jf))
383 def gen_bpf_eq64(const_str, jt, jf): argument
385 bpf_policy.append(BPF_JEQ.format('((unsigned long)' + const_str + ') >> 32', 0, jf + 2))
387 bpf_policy.append(BPF_JEQ.format(const_str + ' & 0xffffffff', jt, jf))
390 def gen_bpf_eq(self, const_str, jt, jf): argument
392 return self.gen_bpf_eq32(const_str, jt, jf)
394 return self.gen_bpf_eq64(const_str, jt, jf)
397 def gen_bpf_ne(self, const_str, jt, jf): argument
398 return self.gen_bpf_eq(const_str, jf, jt)
[all …]