Lines Matching defs:profile

131 	spin_lock_init(&device->profile.lock);
168 spin_lock_init(&block->profile.lock);
240 dasd_profile_init(&block->profile, block->debugfs_dentry);
242 dasd_profile_on(&device->block->profile);
247 dasd_profile_init(&device->profile, device->debugfs_dentry);
276 dasd_profile_exit(&device->block->profile);
285 dasd_profile_exit(&device->profile);
647 if (dasd_global_profile_level || block->profile.data)
660 spin_lock(&block->profile.lock);
661 if (block->profile.data) {
662 block->profile.data->dasd_io_nr_req[counter]++;
664 block->profile.data->dasd_read_nr_req[counter]++;
666 spin_unlock(&block->profile.lock);
674 if (!device->profile.data)
684 spin_lock(&device->profile.lock);
685 device->profile.data->dasd_io_nr_req[counter]++;
687 device->profile.data->dasd_read_nr_req[counter]++;
688 spin_unlock(&device->profile.lock);
714 /* in case of an overflow, reset the whole profile */
762 block->profile.data ||
763 device->profile.data))
804 spin_lock(&block->profile.lock);
805 if (block->profile.data) {
806 data = block->profile.data;
811 dasd_profile_end_add_data(block->profile.data,
820 spin_unlock(&block->profile.lock);
822 spin_lock(&device->profile.lock);
823 if (device->profile.data) {
824 data = device->profile.data;
829 dasd_profile_end_add_data(device->profile.data,
838 spin_unlock(&device->profile.lock);
841 void dasd_profile_reset(struct dasd_profile *profile)
845 spin_lock_bh(&profile->lock);
846 data = profile->data;
848 spin_unlock_bh(&profile->lock);
853 spin_unlock_bh(&profile->lock);
856 int dasd_profile_on(struct dasd_profile *profile)
863 spin_lock_bh(&profile->lock);
864 if (profile->data) {
865 spin_unlock_bh(&profile->lock);
870 profile->data = data;
871 spin_unlock_bh(&profile->lock);
875 void dasd_profile_off(struct dasd_profile *profile)
877 spin_lock_bh(&profile->lock);
878 kfree(profile->data);
879 profile->data = NULL;
880 spin_unlock_bh(&profile->lock);
1003 struct dasd_profile *profile;
1006 profile = m->private;
1007 spin_lock_bh(&profile->lock);
1008 data = profile->data;
1010 spin_unlock_bh(&profile->lock);
1015 spin_unlock_bh(&profile->lock);
1021 struct dasd_profile *profile = inode->i_private;
1022 return single_open(file, dasd_stats_show, profile);
1034 static void dasd_profile_init(struct dasd_profile *profile,
1042 profile->dentry = NULL;
1043 profile->data = NULL;
1046 profile, &dasd_stats_raw_fops);
1048 profile->dentry = pde;
1052 static void dasd_profile_exit(struct dasd_profile *profile)
1054 dasd_profile_off(profile);
1055 debugfs_remove(profile->dentry);
1056 profile->dentry = NULL;
1110 static void dasd_profile_init(struct dasd_profile *profile,
1116 static void dasd_profile_exit(struct dasd_profile *profile)
1121 int dasd_profile_on(struct dasd_profile *profile)