The NetBSD Project

CVS log for src/sys/net/if_stats.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jun 29 02:18:35 2024 UTC (5 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -2 lines
if_stats(9): New dtrace probes on if_statinc/dec/add/sub.

Note: This doesn't apply to if_statinc/dec/add/sub_ref, because we
don't have the ifp passed through.  To be done in a separate commit
which also adjusts all drivers.

PR kern/58377

Revision 1.3.14.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:41 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +3 -6 lines
Sync with HEAD.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jun 29 21:19:58 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -6 lines
Make if_stats_init, if_attach, if_initialize return void.

percpu_alloc can't fail.


Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:57 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.1: +123 -0 lines
Merge changes from current as of 20200406

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:06 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +123 -0 lines
Sync with head.

Revision 1.3.6.1
Fri Feb 14 22:04:12 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.3: +0 -123 lines
file if_stats.c was added on branch phil-wifi on 2020-04-08 14:08:57 +0000

Revision 1.3.2.1
Fri Feb 14 22:04:12 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
FILE REMOVED
Changes since revision 1.3: +0 -123 lines
file if_stats.c was added on branch ad-namecache on 2020-02-29 20:21:06 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 14 22:04:12 2020 UTC (4 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-i2c-spi-conf, phil-wifi, ad-namecache
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -42 lines
Remove the conditional __IF_STATS_PERCPU.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Feb 7 12:35:33 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -3 lines
Use percpu_foreach_xcall() to gather volatile per-cpu counters.  These
must be serialized against the interrupts / soft-interrupts in which
they're manipulated, as well as protected from non-atomic 64-bit memory
loads on 32-bit platforms.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jan 29 03:16:28 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Add support for MP-safe network interface statistics by maintaining them
in per-cpu storage, and collecting them for export in an if_data structure
when user-space wants them.

The new if_stat API is structured to make a gradual transition to the
new way in network drivers possible, and per-cpu stats are currently
disabled (thus there is no kernel ABI change).  Once all drivers have
been converted, the old ABI will be removed, and per-cpu stats will be
enabled universally.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>