Lines Matching refs:m
91 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument
95 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
97 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
98 seq_printf(m, "DevInfo: 0x%x Attributes: 0x%x\n\tPathComponentMax: %d Status: %d", in cifs_debug_tcon()
104 seq_puts(m, " type: DISK "); in cifs_debug_tcon()
106 seq_puts(m, " type: CDROM "); in cifs_debug_tcon()
108 seq_printf(m, " type: %d ", dev_type); in cifs_debug_tcon()
110 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
115 seq_puts(m, " encrypted"); in cifs_debug_tcon()
117 seq_printf(m, " nocase"); in cifs_debug_tcon()
119 seq_printf(m, " POSIX Extensions"); in cifs_debug_tcon()
121 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
123 seq_puts(m, " Witness"); in cifs_debug_tcon()
125 seq_puts(m, " nosparse"); in cifs_debug_tcon()
127 seq_puts(m, "\tDISCONNECTED "); in cifs_debug_tcon()
130 seq_printf(m, "\n\tDFS origin fullpath: %s", in cifs_debug_tcon()
134 seq_putc(m, '\n'); in cifs_debug_tcon()
138 cifs_dump_channel(struct seq_file *m, int i, struct cifs_chan *chan) in cifs_dump_channel() argument
143 seq_printf(m, "\n\n\t\tChannel: %d DISABLED", i+1); in cifs_dump_channel()
147 seq_printf(m, "\n\n\t\tChannel: %d ConnectionId: 0x%llx" in cifs_dump_channel()
166 seq_printf(m, " Net namespace: %u ", server->net->ns.inum); in cifs_dump_channel()
214 cifs_dump_iface(struct seq_file *m, struct cifs_server_iface *iface) in cifs_dump_iface() argument
219 seq_printf(m, "\tSpeed: %s\n", smb_speed_to_str(iface->speed)); in cifs_dump_iface()
220 seq_puts(m, "\t\tCapabilities: "); in cifs_dump_iface()
222 seq_puts(m, "rdma "); in cifs_dump_iface()
224 seq_puts(m, "rss "); in cifs_dump_iface()
226 seq_puts(m, "None"); in cifs_dump_iface()
227 seq_putc(m, '\n'); in cifs_dump_iface()
229 seq_printf(m, "\t\tIPv4: %pI4\n", &ipv4->sin_addr); in cifs_dump_iface()
231 seq_printf(m, "\t\tIPv6: %pI6\n", &ipv6->sin6_addr); in cifs_dump_iface()
233 seq_puts(m, "\t\t[for-cleanup]\n"); in cifs_dump_iface()
236 static int cifs_debug_files_proc_show(struct seq_file *m, void *v) in cifs_debug_files_proc_show() argument
243 seq_puts(m, "# Version:1\n"); in cifs_debug_files_proc_show()
244 seq_puts(m, "# Format:\n"); in cifs_debug_files_proc_show()
245 seq_puts(m, "# <tree id> <ses id> <persistent fid> <flags> <count> <pid> <uid>"); in cifs_debug_files_proc_show()
247 seq_printf(m, " <filename> <mid>\n"); in cifs_debug_files_proc_show()
249 seq_printf(m, " <filename>\n"); in cifs_debug_files_proc_show()
259 seq_printf(m, in cifs_debug_files_proc_show()
270 seq_printf(m, " %llu\n", cfile->fid.mid); in cifs_debug_files_proc_show()
272 seq_printf(m, "\n"); in cifs_debug_files_proc_show()
280 seq_putc(m, '\n'); in cifs_debug_files_proc_show()
284 static int cifs_debug_dirs_proc_show(struct seq_file *m, void *v) in cifs_debug_dirs_proc_show() argument
294 seq_puts(m, "# Version:1\n"); in cifs_debug_dirs_proc_show()
295 seq_puts(m, "# Format:\n"); in cifs_debug_dirs_proc_show()
296 seq_puts(m, "# <tree id> <sess id> <persistent fid> <path>\n"); in cifs_debug_dirs_proc_show()
308 seq_printf(m, "Num entries: %d\n", cfids->num_entries); in cifs_debug_dirs_proc_show()
310 seq_printf(m, "0x%x 0x%llx 0x%llx %s", in cifs_debug_dirs_proc_show()
316 seq_printf(m, "\tvalid file info"); in cifs_debug_dirs_proc_show()
318 seq_printf(m, ", valid dirents"); in cifs_debug_dirs_proc_show()
319 seq_printf(m, "\n"); in cifs_debug_dirs_proc_show()
328 seq_putc(m, '\n'); in cifs_debug_dirs_proc_show()
350 static int cifs_debug_data_proc_show(struct seq_file *m, void *v) in cifs_debug_data_proc_show() argument
362 seq_puts(m, in cifs_debug_data_proc_show()
365 seq_printf(m, "CIFS Version %s\n", CIFS_VERSION); in cifs_debug_data_proc_show()
366 seq_printf(m, "Features:"); in cifs_debug_data_proc_show()
368 seq_printf(m, " DFS"); in cifs_debug_data_proc_show()
371 seq_printf(m, ",FSCACHE"); in cifs_debug_data_proc_show()
374 seq_printf(m, ",SMB_DIRECT"); in cifs_debug_data_proc_show()
377 seq_printf(m, ",STATS2"); in cifs_debug_data_proc_show()
379 seq_printf(m, ",STATS"); in cifs_debug_data_proc_show()
382 seq_printf(m, ",DEBUG2"); in cifs_debug_data_proc_show()
384 seq_printf(m, ",DEBUG"); in cifs_debug_data_proc_show()
387 seq_printf(m, ",ALLOW_INSECURE_LEGACY"); in cifs_debug_data_proc_show()
390 seq_printf(m, ",CIFS_POSIX"); in cifs_debug_data_proc_show()
393 seq_printf(m, ",UPCALL(SPNEGO)"); in cifs_debug_data_proc_show()
396 seq_printf(m, ",XATTR"); in cifs_debug_data_proc_show()
398 seq_printf(m, ",ACL"); in cifs_debug_data_proc_show()
400 seq_puts(m, ",WITNESS"); in cifs_debug_data_proc_show()
403 seq_puts(m, ",COMPRESSION"); in cifs_debug_data_proc_show()
405 seq_putc(m, '\n'); in cifs_debug_data_proc_show()
406 seq_printf(m, "CIFSMaxBufSize: %d\n", CIFSMaxBufSize); in cifs_debug_data_proc_show()
407 seq_printf(m, "Active VFS Requests: %d\n", GlobalTotalActiveXid); in cifs_debug_data_proc_show()
409 seq_printf(m, "\nServers: "); in cifs_debug_data_proc_show()
424 seq_printf(m, "\n%d) ConnectionId: 0x%llx ", in cifs_debug_data_proc_show()
429 seq_printf(m, "Hostname: %s ", server->hostname); in cifs_debug_data_proc_show()
430 seq_printf(m, "\nClientGUID: %pUL", server->client_guid); in cifs_debug_data_proc_show()
437 seq_printf(m, "\nSMBDirect transport not available"); in cifs_debug_data_proc_show()
443 seq_printf(m, "\nSMBDirect (in hex) protocol version: %x " in cifs_debug_data_proc_show()
447 seq_printf(m, "\nConn receive_credit_max: %x " in cifs_debug_data_proc_show()
452 seq_printf(m, "\nConn max_fragmented_recv_size: %x " in cifs_debug_data_proc_show()
457 seq_printf(m, "\nConn keep_alive_interval: %x " in cifs_debug_data_proc_show()
462 seq_printf(m, "\nDebug count_get_receive_buffer: %x " in cifs_debug_data_proc_show()
467 seq_printf(m, "\nRead Queue count_reassembly_queue: %x " in cifs_debug_data_proc_show()
477 seq_printf(m, "\nCurrent Credits send_credits: %x " in cifs_debug_data_proc_show()
482 seq_printf(m, "\nPending send_pending: %x ", in cifs_debug_data_proc_show()
484 seq_printf(m, "\nReceive buffers count_receive_queue: %x ", in cifs_debug_data_proc_show()
486 seq_printf(m, "\nMR responder_resources: %x " in cifs_debug_data_proc_show()
491 seq_printf(m, "\nMR mr_ready_count: %x mr_used_count: %x", in cifs_debug_data_proc_show()
496 seq_printf(m, "\nNumber of credits: %d,%d,%d Dialect 0x%x", in cifs_debug_data_proc_show()
502 seq_printf(m, " signed"); in cifs_debug_data_proc_show()
504 seq_printf(m, " posix"); in cifs_debug_data_proc_show()
506 seq_printf(m, " nosharesock"); in cifs_debug_data_proc_show()
508 seq_printf(m, "\nServer capabilities: 0x%x", server->capabilities); in cifs_debug_data_proc_show()
511 seq_printf(m, "\nRDMA "); in cifs_debug_data_proc_show()
512 seq_printf(m, "\nTCP status: %d Instance: %d" in cifs_debug_data_proc_show()
520 seq_printf(m, " Net namespace: %u ", server->net->ns.inum); in cifs_debug_data_proc_show()
523 seq_printf(m, "\nIn Send: %d In MaxReq Wait: %d", in cifs_debug_data_proc_show()
528 seq_printf(m, "\nDFS leaf full path: %s", in cifs_debug_data_proc_show()
532 seq_puts(m, "\nCompression: "); in cifs_debug_data_proc_show()
534 seq_puts(m, "no built-in support"); in cifs_debug_data_proc_show()
536 seq_puts(m, "disabled on mount"); in cifs_debug_data_proc_show()
538 seq_printf(m, "enabled (%s)", compression_alg_str(server->compression.alg)); in cifs_debug_data_proc_show()
540 seq_puts(m, "disabled (not supported by this server)"); in cifs_debug_data_proc_show()
542 seq_printf(m, "\n\n\tSessions: "); in cifs_debug_data_proc_show()
554 seq_printf(m, "\n\t%d) Address: %s Uses: %d Capability: 0x%x\tSession Status: %d ", in cifs_debug_data_proc_show()
558 seq_printf(m, "Guest "); in cifs_debug_data_proc_show()
560 seq_printf(m, "Anonymous "); in cifs_debug_data_proc_show()
562 seq_printf(m, in cifs_debug_data_proc_show()
571 seq_puts(m, "password no longer valid "); in cifs_debug_data_proc_show()
574 seq_printf(m, "\n\tSecurity type: %s ", in cifs_debug_data_proc_show()
578 seq_printf(m, " SessionId: 0x%llx", ses->Suid); in cifs_debug_data_proc_show()
580 seq_puts(m, " encrypted"); in cifs_debug_data_proc_show()
583 seq_puts(m, "(gcm256)"); in cifs_debug_data_proc_show()
586 seq_puts(m, " signed"); in cifs_debug_data_proc_show()
588 seq_printf(m, "\n\tUser: %d Cred User: %d", in cifs_debug_data_proc_show()
593 seq_printf(m, "\n\tDFS root session id: 0x%llx", in cifs_debug_data_proc_show()
599 seq_puts(m, "\tPrimary channel: DISCONNECTED "); in cifs_debug_data_proc_show()
601 seq_puts(m, "\t[RECONNECTING] "); in cifs_debug_data_proc_show()
604 seq_printf(m, "\n\n\tExtra Channels: %zu ", in cifs_debug_data_proc_show()
607 cifs_dump_channel(m, j, &ses->chans[j]); in cifs_debug_data_proc_show()
609 seq_puts(m, "\tDISCONNECTED "); in cifs_debug_data_proc_show()
611 seq_puts(m, "\t[RECONNECTING] "); in cifs_debug_data_proc_show()
616 seq_puts(m, "\n\n\tShares: "); in cifs_debug_data_proc_show()
619 seq_printf(m, "\n\t%d) IPC: ", j); in cifs_debug_data_proc_show()
621 cifs_debug_tcon(m, ses->tcon_ipc); in cifs_debug_data_proc_show()
623 seq_puts(m, "none\n"); in cifs_debug_data_proc_show()
627 seq_printf(m, "\n\t%d) ", j); in cifs_debug_data_proc_show()
628 cifs_debug_tcon(m, tcon); in cifs_debug_data_proc_show()
633 seq_printf(m, "\n\n\tServer interfaces: %zu" in cifs_debug_data_proc_show()
646 seq_printf(m, "\n\t%d)", ++j); in cifs_debug_data_proc_show()
647 cifs_dump_iface(m, iface); in cifs_debug_data_proc_show()
650 seq_printf(m, "\t\tWeight (cur,total): (%zu,%zu)" in cifs_debug_data_proc_show()
657 seq_puts(m, "\t\t[CONNECTED]\n"); in cifs_debug_data_proc_show()
661 seq_puts(m, "\n\n\tMIDs: "); in cifs_debug_data_proc_show()
671 seq_printf(m, "\n\tServer ConnectionId: 0x%llx", in cifs_debug_data_proc_show()
675 seq_printf(m, "\n\t\tState: %d com: %d pid: %d cbdata: %p mid %llu", in cifs_debug_data_proc_show()
685 seq_puts(m, "\n--\n"); in cifs_debug_data_proc_show()
688 seq_printf(m, "\n\t\t[NONE]"); in cifs_debug_data_proc_show()
691 seq_printf(m, "\n\t[NONE]"); in cifs_debug_data_proc_show()
694 seq_putc(m, '\n'); in cifs_debug_data_proc_show()
695 cifs_swn_dump(m); in cifs_debug_data_proc_show()
760 static int cifs_stats_proc_show(struct seq_file *m, void *v) in cifs_stats_proc_show() argument
770 seq_printf(m, "Resources in use\nCIFS Session: %d\n", in cifs_stats_proc_show()
772 seq_printf(m, "Share (unique mount targets): %d\n", in cifs_stats_proc_show()
774 seq_printf(m, "SMB Request/Response Buffer: %d Pool size: %d\n", in cifs_stats_proc_show()
777 seq_printf(m, "SMB Small Req/Resp Buffer: %d Pool size: %d\n", in cifs_stats_proc_show()
780 seq_printf(m, "Total Large %d Small %d Allocations\n", in cifs_stats_proc_show()
785 seq_printf(m, "Operations (MIDs): %d\n", atomic_read(&mid_count)); in cifs_stats_proc_show()
786 seq_printf(m, in cifs_stats_proc_show()
790 seq_printf(m, in cifs_stats_proc_show()
797 seq_printf(m, "\nMax requests in flight: %d", server->max_in_flight); in cifs_stats_proc_show()
799 seq_puts(m, "\nTotal time spent processing by command. Time "); in cifs_stats_proc_show()
800 seq_printf(m, "units are jiffies (%d per second)\n", HZ); in cifs_stats_proc_show()
801 seq_puts(m, " SMB3 CMD\tNumber\tTotal Time\tFastest\tSlowest\n"); in cifs_stats_proc_show()
802 seq_puts(m, " --------\t------\t----------\t-------\t-------\n"); in cifs_stats_proc_show()
804 seq_printf(m, " %d\t\t%d\t%llu\t\t%u\t%u\n", j, in cifs_stats_proc_show()
812 seq_printf(m, " %d slow responses from %s for command %d\n", in cifs_stats_proc_show()
823 seq_printf(m, "\n%d) %s", i, tcon->tree_name); in cifs_stats_proc_show()
825 seq_puts(m, "\tDISCONNECTED "); in cifs_stats_proc_show()
826 seq_printf(m, "\nSMBs: %d since %ptTs UTC", in cifs_stats_proc_show()
830 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()
836 seq_putc(m, '\n'); in cifs_stats_proc_show()
864 static int name##_proc_show(struct seq_file *m, void *v) \
866 seq_printf(m, "%d\n", name); \
985 static int cifsFYI_proc_show(struct seq_file *m, void *v) in cifsFYI_proc_show() argument
987 seq_printf(m, "%d\n", cifsFYI); in cifsFYI_proc_show()
1024 static int cifs_linux_ext_proc_show(struct seq_file *m, void *v) in cifs_linux_ext_proc_show() argument
1026 seq_printf(m, "%d\n", linuxExtEnabled); in cifs_linux_ext_proc_show()
1055 static int cifs_lookup_cache_proc_show(struct seq_file *m, void *v) in cifs_lookup_cache_proc_show() argument
1057 seq_printf(m, "%d\n", lookupCacheEnabled); in cifs_lookup_cache_proc_show()
1086 static int traceSMB_proc_show(struct seq_file *m, void *v) in traceSMB_proc_show() argument
1088 seq_printf(m, "%d\n", traceSMB); in traceSMB_proc_show()
1117 static int cifs_security_flags_proc_show(struct seq_file *m, void *v) in cifs_security_flags_proc_show() argument
1119 seq_printf(m, "0x%x\n", global_secflags); in cifs_security_flags_proc_show()
1221 static int cifs_mount_params_proc_show(struct seq_file *m, void *v) in cifs_mount_params_proc_show() argument
1244 seq_printf(m, "%s:%s\n", p->name, type); in cifs_mount_params_proc_show()