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

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

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « sandbox/linux/bpf_dsl/cons.h ('k') | sandbox/linux/bpf_dsl/policy_compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <inttypes.h> 7 #include <inttypes.h>
8 #include <stddef.h>
9 #include <stdint.h>
10 #include <stdio.h> 8 #include <stdio.h>
11 9
12 #include <string> 10 #include <string>
13 11
14 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
15 #include "sandbox/linux/bpf_dsl/codegen.h" 13 #include "sandbox/linux/bpf_dsl/codegen.h"
16 #include "sandbox/linux/bpf_dsl/seccomp_macros.h" 14 #include "sandbox/linux/bpf_dsl/seccomp_macros.h"
17 #include "sandbox/linux/bpf_dsl/trap_registry.h" 15 #include "sandbox/linux/bpf_dsl/trap_registry.h"
18 #include "sandbox/linux/system_headers/linux_filter.h" 16 #include "sandbox/linux/system_headers/linux_filter.h"
19 #include "sandbox/linux/system_headers/linux_seccomp.h" 17 #include "sandbox/linux/system_headers/linux_seccomp.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 std::string DumpBPF::StringPrintProgram(const CodeGen::Program& program) { 148 std::string DumpBPF::StringPrintProgram(const CodeGen::Program& program) {
151 std::string res; 149 std::string res;
152 for (size_t i = 0; i < program.size(); i++) { 150 for (size_t i = 0; i < program.size(); i++) {
153 AppendInstruction(&res, i + 1, program[i]); 151 AppendInstruction(&res, i + 1, program[i]);
154 } 152 }
155 return res; 153 return res;
156 } 154 }
157 155
158 } // namespace bpf_dsl 156 } // namespace bpf_dsl
159 } // namespace sandbox 157 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/cons.h ('k') | sandbox/linux/bpf_dsl/policy_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698