zfcp_dbf.c (4ba25a496f62129a2ad8c2436ab2b402752dc66c) | zfcp_dbf.c (3f79410c7c9c8ef33ccff60c61e1f1166f5ed64a) |
---|---|
1/* 2 * zfcp device driver 3 * 4 * Debug traces for zfcp. 5 * 6 * Copyright IBM Corp. 2002, 2013 7 */ 8 --- 330 unchanged lines hidden (view full) --- 339 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); 340 341 debug_event(dbf->san, 1, rec, sizeof(*rec)); 342 spin_unlock_irqrestore(&dbf->san_lock, flags); 343} 344 345/** 346 * zfcp_dbf_san_req - trace event for issued SAN request | 1/* 2 * zfcp device driver 3 * 4 * Debug traces for zfcp. 5 * 6 * Copyright IBM Corp. 2002, 2013 7 */ 8 --- 330 unchanged lines hidden (view full) --- 339 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); 340 341 debug_event(dbf->san, 1, rec, sizeof(*rec)); 342 spin_unlock_irqrestore(&dbf->san_lock, flags); 343} 344 345/** 346 * zfcp_dbf_san_req - trace event for issued SAN request |
347 * @tag: indentifier for event | 347 * @tag: identifier for event |
348 * @fsf_req: request containing issued CT data 349 * d_id: destination ID 350 */ 351void zfcp_dbf_san_req(char *tag, struct zfcp_fsf_req *fsf, u32 d_id) 352{ 353 struct zfcp_dbf *dbf = fsf->adapter->dbf; 354 struct zfcp_fsf_ct_els *ct_els = fsf->data; 355 u16 length; 356 357 length = (u16)(ct_els->req->length + FC_CT_HDR_LEN); 358 zfcp_dbf_san(tag, dbf, sg_virt(ct_els->req), ZFCP_DBF_SAN_REQ, length, 359 fsf->req_id, d_id); 360} 361 362/** 363 * zfcp_dbf_san_res - trace event for received SAN request | 348 * @fsf_req: request containing issued CT data 349 * d_id: destination ID 350 */ 351void zfcp_dbf_san_req(char *tag, struct zfcp_fsf_req *fsf, u32 d_id) 352{ 353 struct zfcp_dbf *dbf = fsf->adapter->dbf; 354 struct zfcp_fsf_ct_els *ct_els = fsf->data; 355 u16 length; 356 357 length = (u16)(ct_els->req->length + FC_CT_HDR_LEN); 358 zfcp_dbf_san(tag, dbf, sg_virt(ct_els->req), ZFCP_DBF_SAN_REQ, length, 359 fsf->req_id, d_id); 360} 361 362/** 363 * zfcp_dbf_san_res - trace event for received SAN request |
364 * @tag: indentifier for event | 364 * @tag: identifier for event |
365 * @fsf_req: request containing issued CT data 366 */ 367void zfcp_dbf_san_res(char *tag, struct zfcp_fsf_req *fsf) 368{ 369 struct zfcp_dbf *dbf = fsf->adapter->dbf; 370 struct zfcp_fsf_ct_els *ct_els = fsf->data; 371 u16 length; 372 373 length = (u16)(ct_els->resp->length + FC_CT_HDR_LEN); 374 zfcp_dbf_san(tag, dbf, sg_virt(ct_els->resp), ZFCP_DBF_SAN_RES, length, 375 fsf->req_id, 0); 376} 377 378/** 379 * zfcp_dbf_san_in_els - trace event for incoming ELS | 365 * @fsf_req: request containing issued CT data 366 */ 367void zfcp_dbf_san_res(char *tag, struct zfcp_fsf_req *fsf) 368{ 369 struct zfcp_dbf *dbf = fsf->adapter->dbf; 370 struct zfcp_fsf_ct_els *ct_els = fsf->data; 371 u16 length; 372 373 length = (u16)(ct_els->resp->length + FC_CT_HDR_LEN); 374 zfcp_dbf_san(tag, dbf, sg_virt(ct_els->resp), ZFCP_DBF_SAN_RES, length, 375 fsf->req_id, 0); 376} 377 378/** 379 * zfcp_dbf_san_in_els - trace event for incoming ELS |
380 * @tag: indentifier for event | 380 * @tag: identifier for event |
381 * @fsf_req: request containing issued CT data 382 */ 383void zfcp_dbf_san_in_els(char *tag, struct zfcp_fsf_req *fsf) 384{ 385 struct zfcp_dbf *dbf = fsf->adapter->dbf; 386 struct fsf_status_read_buffer *srb = 387 (struct fsf_status_read_buffer *) fsf->data; 388 u16 length; --- 156 unchanged lines hidden --- | 381 * @fsf_req: request containing issued CT data 382 */ 383void zfcp_dbf_san_in_els(char *tag, struct zfcp_fsf_req *fsf) 384{ 385 struct zfcp_dbf *dbf = fsf->adapter->dbf; 386 struct fsf_status_read_buffer *srb = 387 (struct fsf_status_read_buffer *) fsf->data; 388 u16 length; --- 156 unchanged lines hidden --- |