| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sandbox/linux/bpf_dsl/dump_bpf.h" | 5 #include "sandbox/linux/bpf_dsl/dump_bpf.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "sandbox/linux/bpf_dsl/codegen.h" |
| 9 #include "sandbox/linux/bpf_dsl/trap_registry.h" | 10 #include "sandbox/linux/bpf_dsl/trap_registry.h" |
| 10 #include "sandbox/linux/seccomp-bpf/codegen.h" | |
| 11 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h" | 11 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h" |
| 12 | 12 |
| 13 namespace sandbox { | 13 namespace sandbox { |
| 14 namespace bpf_dsl { | 14 namespace bpf_dsl { |
| 15 | 15 |
| 16 void DumpBPF::PrintProgram(const CodeGen::Program& program) { | 16 void DumpBPF::PrintProgram(const CodeGen::Program& program) { |
| 17 for (CodeGen::Program::const_iterator iter = program.begin(); | 17 for (CodeGen::Program::const_iterator iter = program.begin(); |
| 18 iter != program.end(); | 18 iter != program.end(); |
| 19 ++iter) { | 19 ++iter) { |
| 20 int ip = (int)(iter - program.begin()); | 20 int ip = (int)(iter - program.begin()); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 default: | 96 default: |
| 97 fprintf(stderr, "???\n"); | 97 fprintf(stderr, "???\n"); |
| 98 break; | 98 break; |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 return; | 101 return; |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace bpf_dsl | 104 } // namespace bpf_dsl |
| 105 } // namespace sandbox | 105 } // namespace sandbox |
| OLD | NEW |