Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Side by Side Diff: sandbox/linux/bpf_dsl/dump_bpf.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/codegen.h"
10 #include "sandbox/linux/bpf_dsl/trap_registry.h" 10 #include "sandbox/linux/bpf_dsl/trap_registry.h"
11 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h" 11 #include "sandbox/linux/system_headers/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());
21 fprintf(stderr, "%3d) ", ip); 21 fprintf(stderr, "%3d) ", ip);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl_more_unittest.cc ('k') | sandbox/linux/bpf_dsl/linux_syscall_ranges.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698