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

Side by Side Diff: trace_inputs.py

Issue 15867006: Ignore chown. (Closed) Base URL: https://git.chromium.org/chromium/tools/swarm_client.git@5_no_external
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # coding=utf-8 2 # coding=utf-8
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Traces an executable and its child processes and extract the files accessed 7 """Traces an executable and its child processes and extract the files accessed
8 by them. 8 by them.
9 9
10 The implementation uses OS-specific API. The native Kernel logger and the ETL 10 The implementation uses OS-specific API. The native Kernel logger and the ETL
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 @parse_args(r'^\"(.+?)\", [FKORWX_|]+$', True) 1375 @parse_args(r'^\"(.+?)\", [FKORWX_|]+$', True)
1376 def handle_access(self, args, _result): 1376 def handle_access(self, args, _result):
1377 self._handle_file(args[0], True) 1377 self._handle_file(args[0], True)
1378 1378
1379 @parse_args(r'^\"(.+?)\"$', True) 1379 @parse_args(r'^\"(.+?)\"$', True)
1380 def handle_chdir(self, args, _result): 1380 def handle_chdir(self, args, _result):
1381 """Updates cwd.""" 1381 """Updates cwd."""
1382 self.cwd = self.RelativePath(self, args[0]) 1382 self.cwd = self.RelativePath(self, args[0])
1383 logging.debug('handle_chdir(%d, %s)' % (self.pid, self.cwd)) 1383 logging.debug('handle_chdir(%d, %s)' % (self.pid, self.cwd))
1384 1384
1385 def handle_chown(self, _args, result):
1386 pass
1387
1385 def handle_clone(self, _args, result): 1388 def handle_clone(self, _args, result):
1386 self._handling_forking('clone', result) 1389 self._handling_forking('clone', result)
1387 1390
1388 def handle_close(self, _args, _result): 1391 def handle_close(self, _args, _result):
1389 pass 1392 pass
1390 1393
1391 def handle_chmod(self, _args, _result): 1394 def handle_chmod(self, _args, _result):
1392 pass 1395 pass
1393 1396
1394 def handle_creat(self, _args, _result): 1397 def handle_creat(self, _args, _result):
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3629 main_impl(argv) 3632 main_impl(argv)
3630 except TracingFailure, e: 3633 except TracingFailure, e:
3631 sys.stderr.write('\nError: ') 3634 sys.stderr.write('\nError: ')
3632 sys.stderr.write(str(e)) 3635 sys.stderr.write(str(e))
3633 sys.stderr.write('\n') 3636 sys.stderr.write('\n')
3634 return 1 3637 return 1
3635 3638
3636 3639
3637 if __name__ == '__main__': 3640 if __name__ == '__main__':
3638 sys.exit(main(sys.argv[1:])) 3641 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698