Changeset 9343
- Timestamp:
- 06/18/12 11:16:07 (12 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/src/apps/kernel/linux/pvfs2-client-core.c
r9298 r9343 204 204 205 205 static struct PINT_perf_counter* acache_pc = NULL; 206 static struct PINT_perf_counter* static_acache_pc = NULL; 206 /* static struct PINT_perf_counter* static_acache_pc = NULL; */ 207 207 static struct PINT_perf_counter* ncache_pc = NULL; 208 208 /* static char hostname[100]; */ … … 1277 1277 } 1278 1278 break; 1279 1279 /* 1280 1280 case PVFS2_PERF_COUNT_REQUEST_STATIC_ACACHE: 1281 1281 tmp_str = PINT_perf_generate_text(static_acache_pc, … … 1293 1293 } 1294 1294 break; 1295 1295 */ 1296 1296 case PVFS2_PERF_COUNT_REQUEST_NCACHE: 1297 1297 tmp_str = PINT_perf_generate_text(ncache_pc, … … 1433 1433 ret = PINT_perf_set_info( 1434 1434 acache_pc, PINT_PERF_HISTORY_SIZE, tmp_perf_val); 1435 ret = PINT_perf_set_info(1435 /* ret = PINT_perf_set_info( 1436 1436 static_acache_pc, PINT_PERF_HISTORY_SIZE, tmp_perf_val); 1437 */ 1437 1438 ret = PINT_perf_set_info( 1438 1439 ncache_pc, PINT_PERF_HISTORY_SIZE, tmp_perf_val); … … 1446 1447 { 1447 1448 PINT_perf_reset(acache_pc); 1448 PINT_perf_reset(static_acache_pc); 1449 /* PINT_perf_reset(static_acache_pc);*/ 1449 1450 PINT_perf_reset(ncache_pc); 1450 1451 } … … 3303 3304 uint64_t debug_mask = GOSSIP_NO_DEBUG; 3304 3305 PINT_client_sm *acache_timer_sm_p = NULL; 3305 PINT_client_sm *static_acache_timer_sm_p = NULL;3306 /* PINT_client_sm *static_acache_timer_sm_p = NULL; */ 3306 3307 PINT_smcb *acache_smcb = NULL; 3307 PINT_smcb *acache_static_smcb = NULL;3308 /* PINT_smcb *acache_static_smcb = NULL; */ 3308 3309 PINT_smcb *ncache_smcb = NULL; 3309 3310 PINT_client_sm *ncache_timer_sm_p = NULL; … … 3467 3468 } 3468 3469 3470 /* 3469 3471 static_acache_pc = PINT_perf_initialize(acache_keys); 3470 3472 if(!static_acache_pc) … … 3474 3476 return(-PVFS_ENOMEM); 3475 3477 } 3478 3476 3479 ret = PINT_perf_set_info(static_acache_pc, PINT_PERF_HISTORY_SIZE, 3477 3480 s_opts.perf_history_size); … … 3482 3485 return(ret); 3483 3486 } 3484 3485 PINT_acache_enable_perf_counter(acache_pc, static_acache_pc); 3487 */ 3488 3489 PINT_acache_enable_perf_counter(acache_pc); 3486 3490 3487 3491 /* start performance counters for ncache */ … … 3526 3530 } 3527 3531 3532 /* 3528 3533 PINT_smcb_alloc(&acache_static_smcb, PVFS_CLIENT_PERF_COUNT_TIMER, 3529 3534 sizeof(struct PINT_client_sm), … … 3548 3553 return(ret); 3549 3554 } 3555 */ 3550 3556 3551 3557 PINT_smcb_alloc(&ncache_smcb, PVFS_CLIENT_PERF_COUNT_TIMER, … … 3556 3562 if (!ncache_smcb) 3557 3563 { 3558 finalize_perf_items( 2, acache_smcb, acache_static_smcb);3564 finalize_perf_items( 1, acache_smcb); 3559 3565 return(-PVFS_ENOMEM); 3560 3566 } … … 3567 3573 { 3568 3574 gossip_lerr("Error posting ncache timer.\n"); 3569 finalize_perf_items( 3, acache_smcb, acache_static_smcb, ncache_smcb );3575 finalize_perf_items( 2, acache_smcb, ncache_smcb ); 3570 3576 return(ret); 3571 3577 } … … 3575 3581 { 3576 3582 PVFS_perror("initialize_ops_in_progress_table", ret); 3577 finalize_perf_items( 3, acache_smcb, acache_static_smcb, ncache_smcb );3583 finalize_perf_items( 2, acache_smcb, ncache_smcb ); 3578 3584 return ret; 3579 3585 } … … 3583 3589 { 3584 3590 PVFS_perror("PINT_dev_initialize", ret); 3585 finalize_perf_items( 3, acache_smcb, acache_static_smcb, ncache_smcb );3591 finalize_perf_items( 2, acache_smcb, ncache_smcb ); 3586 3592 return -PVFS_EDEVINIT; 3587 3593 } … … 3593 3599 { 3594 3600 PVFS_perror("PINT_dev_get_mapped_region", ret); 3595 finalize_perf_items( 3, acache_smcb, acache_static_smcb, ncache_smcb );3601 finalize_perf_items( 2, acache_smcb, ncache_smcb ); 3596 3602 return ret; 3597 3603 } … … 3601 3607 { 3602 3608 PVFS_perror("device job_open_context failed", ret); 3603 finalize_perf_items( 3, acache_smcb, acache_static_smcb, ncache_smcb );3609 finalize_perf_items( 2, acache_smcb, ncache_smcb ); 3604 3610 return ret; 3605 3611 } … … 3614 3620 { 3615 3621 gossip_err("Cannot create remount thread!"); 3616 finalize_perf_items( 3, acache_smcb, acache_static_smcb, ncache_smcb );3622 finalize_perf_items( 2, acache_smcb, ncache_smcb ); 3617 3623 return -1; 3618 3624 } … … 3656 3662 "calling PVFS_sys_finalize()\n"); 3657 3663 3664 #if 0 3658 3665 /*release smcb associated with the acache-timer*/ 3659 3666 if (static_acache_timer_sm_p->sys_op_id) 3660 3667 PINT_sys_release(static_acache_timer_sm_p->sys_op_id); 3668 #endif 3661 3669 3662 3670 finalize_perf_items( 2, acache_smcb, ncache_smcb ); … … 4073 4081 PINT_perf_finalize( acache_pc ); 4074 4082 } 4075 4083 4084 /* 4076 4085 if( static_acache_pc != NULL ) 4077 4086 { 4078 4087 PINT_perf_finalize( static_acache_pc ); 4079 4088 } 4089 */ 4080 4090 4081 4091 if( ncache_pc != NULL )
