Changeset 13658 for trunk/ppStats/src/ppStats.c
- Timestamp:
- Jun 5, 2007, 3:08:13 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStats.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStats.c
r13640 r13658 12 12 pmFPA *fpa, // FPA for which to get statistics 13 13 pmFPAview *view, // View for analysis 14 psMaskType maskVal, // Value to mask 14 15 pmConfig *config // Configuration 15 16 ) 16 17 { 17 psExit status; 18 PS_ASSERT_PTR_NON_NULL(fpa, NULL) 19 PS_ASSERT_PTR_NON_NULL(view, NULL); 20 PS_ASSERT_PTR_NON_NULL(config, NULL); 21 22 ppStatsData *data = ppStatsDataAlloc(); // All the input data 18 23 19 24 // Get the options, open the files 20 ppStatsData *data = ppStatsSetupFromRecipe(NULL, config); 25 if (!ppStatsSetupFromRecipe(data, config)) { 26 psError(PS_ERR_UNKNOWN, false, "Unable to get ppStats options from recipe."); 27 psFree(data); 28 return NULL; 29 } 30 31 // Override recipe mask value if one is provided 32 if (maskVal != 0) { 33 data->maskVal = maskVal; 34 } 21 35 22 36 if (data->fpa) { … … 31 45 32 46 // Go through the FPA and do the hard work 47 psExit status; // Status of statistics loop 33 48 psMetadata *result = ppStatsLoop(&status, out, data, config); 34 49 if (status != PS_EXIT_SUCCESS) { 35 psError (PS_ERR_UNKNOWN, false, "trouble getting stats\n");50 psError (PS_ERR_UNKNOWN, false, "Not able to measure FPA statistics.\n"); 36 51 psFree(result); 37 psFree(data);38 return (NULL);52 psFree(data); 53 return (NULL); 39 54 } 40 55
Note:
See TracChangeset
for help on using the changeset viewer.
