| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 return true; | 669 return true; |
| 670 } | 670 } |
| 671 | 671 |
| 672 namespace { | 672 namespace { |
| 673 | 673 |
| 674 void ModuleTraceDataToModuleInformation( | 674 void ModuleTraceDataToModuleInformation( |
| 675 const TraceModuleData& module_data, | 675 const TraceModuleData& module_data, |
| 676 ModuleInformation* module_info) { | 676 ModuleInformation* module_info) { |
| 677 DCHECK_NE(static_cast<ModuleInformation*>(nullptr), module_info); | 677 DCHECK_NE(static_cast<ModuleInformation*>(nullptr), module_info); |
| 678 module_info->base_address.set_value( | 678 module_info->base_address.set_value( |
| 679 reinterpret_cast<uint32_t>(module_data.module_base_addr)); | 679 reinterpret_cast<size_t>(module_data.module_base_addr)); |
| 680 module_info->module_size = module_data.module_base_size; | 680 module_info->module_size = module_data.module_base_size; |
| 681 module_info->path = module_data.module_name; | 681 module_info->path = module_data.module_name; |
| 682 module_info->module_checksum = module_data.module_checksum; | 682 module_info->module_checksum = module_data.module_checksum; |
| 683 module_info->module_time_date_stamp = module_data.module_time_date_stamp; | 683 module_info->module_time_date_stamp = module_data.module_time_date_stamp; |
| 684 } | 684 } |
| 685 | 685 |
| 686 } // namespace | 686 } // namespace |
| 687 | 687 |
| 688 bool ParseEngine::DispatchModuleEvent(EVENT_TRACE* event, | 688 bool ParseEngine::DispatchModuleEvent(EVENT_TRACE* event, |
| 689 TraceEventType type) { | 689 TraceEventType type) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 LOG(ERROR) << "Unexpected module event type " << type << "."; | 743 LOG(ERROR) << "Unexpected module event type " << type << "."; |
| 744 return false; | 744 return false; |
| 745 } | 745 } |
| 746 } | 746 } |
| 747 | 747 |
| 748 return true; | 748 return true; |
| 749 } | 749 } |
| 750 | 750 |
| 751 } // namespace parser | 751 } // namespace parser |
| 752 } // namespace trace | 752 } // namespace trace |
| OLD | NEW |