From owner-svn-src-head@FreeBSD.ORG Sun Mar 4 23:13:52 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA44F1065764; Sun, 4 Mar 2012 23:13:52 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D53E08FC22; Sun, 4 Mar 2012 23:13:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q24NDqJ4056559; Sun, 4 Mar 2012 23:13:52 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q24NDqVx056556; Sun, 4 Mar 2012 23:13:52 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201203042313.q24NDqVx056556@svn.freebsd.org> From: Adrian Chadd Date: Sun, 4 Mar 2012 23:13:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232526 - head/sys/net80211 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2012 23:13:53 -0000 Author: adrian Date: Sun Mar 4 23:13:52 2012 New Revision: 232526 URL: http://svn.freebsd.org/changeset/base/232526 Log: Add the thread id to the net80211 alq records. This will (hopefully) aid in debugging concurrency related issues. Modified: head/sys/net80211/ieee80211_alq.c head/sys/net80211/ieee80211_alq.h Modified: head/sys/net80211/ieee80211_alq.c ============================================================================== --- head/sys/net80211/ieee80211_alq.c Sun Mar 4 23:04:16 2012 (r232525) +++ head/sys/net80211/ieee80211_alq.c Sun Mar 4 23:13:52 2012 (r232526) @@ -152,6 +152,7 @@ ieee80211_alq_log(struct ieee80211vap *v 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); } Modified: head/sys/net80211/ieee80211_alq.h ============================================================================== --- head/sys/net80211/ieee80211_alq.h Sun Mar 4 23:04:16 2012 (r232525) +++ head/sys/net80211/ieee80211_alq.h Sun Mar 4 23:13:52 2012 (r232526) @@ -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__ */