diff options
author | adrian <adrian@FreeBSD.org> | 2012-03-04 23:13:52 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-03-04 23:13:52 +0000 |
commit | 44c3f77031da7b40f171b68abee35407a0e7945d (patch) | |
tree | 232d6f2c5bdb732c56741b99137215133aed5053 /sys | |
parent | 83811db6cbd92c2c09bae276e709fd1b8beed0a0 (diff) | |
download | FreeBSD-src-44c3f77031da7b40f171b68abee35407a0e7945d.zip FreeBSD-src-44c3f77031da7b40f171b68abee35407a0e7945d.tar.gz |
Add the thread id to the net80211 alq records.
This will (hopefully) aid in debugging concurrency related issues.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_alq.c | 1 | ||||
-rw-r--r-- | sys/net80211/ieee80211_alq.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_alq.c b/sys/net80211/ieee80211_alq.c index 1586b5e..b4216ba 100644 --- a/sys/net80211/ieee80211_alq.c +++ b/sys/net80211/ieee80211_alq.c @@ -152,6 +152,7 @@ ieee80211_alq_log(struct ieee80211vap *vap, uint8_t op, u_char *p, int l) r->r_version = 1; r->r_wlan = htons(vap->iv_ifp->if_dunit); r->r_op = op; + r->r_threadid = (uint32_t) curthread->td_ucred; memcpy(&r->r_payload, p, MIN(l, sizeof(r->r_payload))); alq_post(ieee80211_alq, ale); } diff --git a/sys/net80211/ieee80211_alq.h b/sys/net80211/ieee80211_alq.h index 648eba2..112c6b1 100644 --- a/sys/net80211/ieee80211_alq.h +++ b/sys/net80211/ieee80211_alq.h @@ -38,6 +38,7 @@ */ struct ieee80211_alq_rec { uint32_t r_timestamp; /* XXX may wrap! */ + uint32_t r_threadid; /* current thread id */ uint16_t r_wlan; /* wlan interface number */ uint8_t r_version; /* version */ uint8_t r_op; /* top-level operation id */ @@ -46,6 +47,7 @@ struct ieee80211_alq_rec { }; /* General logging function */ -extern void ieee80211_alq_log(struct ieee80211vap *vap, uint8_t op, u_char *p, int l); +extern void ieee80211_alq_log(struct ieee80211vap *vap, uint8_t op, + u_char *p, int l); #endif /* __IEEE80211_ALQ_H__ */ |