Lines Matching refs:profile

128 	spin_lock_init(&device->profile.lock);
165 spin_lock_init(&block->profile.lock);
237 dasd_profile_init(&block->profile, block->debugfs_dentry);
239 dasd_profile_on(&device->block->profile);
244 dasd_profile_init(&device->profile, device->debugfs_dentry);
273 dasd_profile_exit(&device->block->profile);
282 dasd_profile_exit(&device->profile);
664 if (dasd_global_profile_level || block->profile.data)
677 spin_lock(&block->profile.lock);
678 if (block->profile.data) {
679 block->profile.data->dasd_io_nr_req[counter]++;
681 block->profile.data->dasd_read_nr_req[counter]++;
683 spin_unlock(&block->profile.lock);
691 if (!device->profile.data)
701 spin_lock(&device->profile.lock);
702 device->profile.data->dasd_io_nr_req[counter]++;
704 device->profile.data->dasd_read_nr_req[counter]++;
705 spin_unlock(&device->profile.lock);
731 /* in case of an overflow, reset the whole profile */
779 block->profile.data ||
780 device->profile.data))
821 spin_lock(&block->profile.lock);
822 if (block->profile.data) {
823 data = block->profile.data;
828 dasd_profile_end_add_data(block->profile.data,
837 spin_unlock(&block->profile.lock);
839 spin_lock(&device->profile.lock);
840 if (device->profile.data) {
841 data = device->profile.data;
846 dasd_profile_end_add_data(device->profile.data,
855 spin_unlock(&device->profile.lock);
858 void dasd_profile_reset(struct dasd_profile *profile)
862 spin_lock_bh(&profile->lock);
863 data = profile->data;
865 spin_unlock_bh(&profile->lock);
870 spin_unlock_bh(&profile->lock);
873 int dasd_profile_on(struct dasd_profile *profile)
880 spin_lock_bh(&profile->lock);
881 if (profile->data) {
882 spin_unlock_bh(&profile->lock);
887 profile->data = data;
888 spin_unlock_bh(&profile->lock);
892 void dasd_profile_off(struct dasd_profile *profile)
894 spin_lock_bh(&profile->lock);
895 kfree(profile->data);
896 profile->data = NULL;
897 spin_unlock_bh(&profile->lock);
1020 struct dasd_profile *profile;
1023 profile = m->private;
1024 spin_lock_bh(&profile->lock);
1025 data = profile->data;
1027 spin_unlock_bh(&profile->lock);
1032 spin_unlock_bh(&profile->lock);
1038 struct dasd_profile *profile = inode->i_private;
1039 return single_open(file, dasd_stats_show, profile);
1051 static void dasd_profile_init(struct dasd_profile *profile,
1059 profile->dentry = NULL;
1060 profile->data = NULL;
1063 profile, &dasd_stats_raw_fops);
1065 profile->dentry = pde;
1069 static void dasd_profile_exit(struct dasd_profile *profile)
1071 dasd_profile_off(profile);
1072 debugfs_remove(profile->dentry);
1073 profile->dentry = NULL;
1121 static void dasd_profile_init(struct dasd_profile *profile,
1127 static void dasd_profile_exit(struct dasd_profile *profile)
1132 int dasd_profile_on(struct dasd_profile *profile)