Lines Matching defs:profile
147 spin_lock_init(&device->profile.lock);
184 spin_lock_init(&block->profile.lock);
269 dasd_profile_init(&block->profile, block->debugfs_dentry);
271 dasd_profile_on(&device->block->profile);
276 dasd_profile_init(&device->profile, device->debugfs_dentry);
305 dasd_profile_exit(&device->block->profile);
314 dasd_profile_exit(&device->profile);
713 if (dasd_global_profile_level || block->profile.data)
726 spin_lock(&block->profile.lock);
727 if (block->profile.data) {
728 block->profile.data->dasd_io_nr_req[counter]++;
730 block->profile.data->dasd_read_nr_req[counter]++;
732 spin_unlock(&block->profile.lock);
740 if (!device->profile.data)
750 spin_lock(&device->profile.lock);
751 device->profile.data->dasd_io_nr_req[counter]++;
753 device->profile.data->dasd_read_nr_req[counter]++;
754 spin_unlock(&device->profile.lock);
780 /* in case of an overflow, reset the whole profile */
828 block->profile.data ||
829 device->profile.data))
870 spin_lock(&block->profile.lock);
871 if (block->profile.data) {
872 data = block->profile.data;
877 dasd_profile_end_add_data(block->profile.data,
886 spin_unlock(&block->profile.lock);
888 spin_lock(&device->profile.lock);
889 if (device->profile.data) {
890 data = device->profile.data;
895 dasd_profile_end_add_data(device->profile.data,
904 spin_unlock(&device->profile.lock);
907 void dasd_profile_reset(struct dasd_profile *profile)
911 spin_lock_bh(&profile->lock);
912 data = profile->data;
914 spin_unlock_bh(&profile->lock);
919 spin_unlock_bh(&profile->lock);
922 int dasd_profile_on(struct dasd_profile *profile)
929 spin_lock_bh(&profile->lock);
930 if (profile->data) {
931 spin_unlock_bh(&profile->lock);
936 profile->data = data;
937 spin_unlock_bh(&profile->lock);
941 void dasd_profile_off(struct dasd_profile *profile)
943 spin_lock_bh(&profile->lock);
944 kfree(profile->data);
945 profile->data = NULL;
946 spin_unlock_bh(&profile->lock);
1069 struct dasd_profile *profile;
1072 profile = m->private;
1073 spin_lock_bh(&profile->lock);
1074 data = profile->data;
1076 spin_unlock_bh(&profile->lock);
1081 spin_unlock_bh(&profile->lock);
1087 struct dasd_profile *profile = inode->i_private;
1088 return single_open(file, dasd_stats_show, profile);
1100 static void dasd_profile_init(struct dasd_profile *profile,
1108 profile->dentry = NULL;
1109 profile->data = NULL;
1112 profile, &dasd_stats_raw_fops);
1114 profile->dentry = pde;
1118 static void dasd_profile_exit(struct dasd_profile *profile)
1120 dasd_profile_off(profile);
1121 debugfs_remove(profile->dentry);
1122 profile->dentry = NULL;
1176 static void dasd_profile_init(struct dasd_profile *profile,
1182 static void dasd_profile_exit(struct dasd_profile *profile)
1187 int dasd_profile_on(struct dasd_profile *profile)