Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 19:28:44 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/share/man/man4 bpf.4 src/sys/kern kern_tc.c src/sys/net bpf.c bpf.h bpfdesc.h src/sys/sys time.h
Message-ID:  <201006151938.o5FJcUPB062710@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jkim        2010-06-15 19:28:44 UTC

  FreeBSD src repository

  Modified files:
    share/man/man4       bpf.4 
    sys/kern             kern_tc.c 
    sys/net              bpf.c bpf.h bpfdesc.h 
    sys/sys              time.h 
  Log:
  SVN rev 209216 on 2010-06-15 19:28:44Z by jkim
  
  Implement flexible BPF timestamping framework.
  
  - Allow setting format, resolution and accuracy of BPF time stamps per
  listener.  Previously, we were only able to use microtime(9).  Now we can
  set various resolutions and accuracies with ioctl(2) BIOCSTSTAMP command.
  Similarly, we can get the current resolution and accuracy with BIOCGTSTAMP
  command.  Document all supported options in bpf(4) and their uses.
  
  - Introduce new time stamp 'struct bpf_ts' and header 'struct bpf_xhdr'.
  The new time stamp has both 64-bit second and fractional parts.  bpf_xhdr
  has this time stamp instead of 'struct timeval' for bh_tstamp.  The new
  structures let us use bh_tstamp of same size on both 32-bit and 64-bit
  platforms without adding additional shims for 32-bit binaries.  On 64-bit
  platforms, size of BPF header does not change compared to bpf_hdr as its
  members are already all 64-bit long.  On 32-bit platforms, the size may
  increase by 8 bytes.  For backward compatibility, struct bpf_hdr with
  struct timeval is still the default header unless new time stamp format is
  explicitly requested.  However, the behaviour may change in the future and
  all relevant code is wrapped around "#ifdef BURN_BRIDGES" for now.
  
  - Add experimental support for tagging mbufs with time stamps from a lower
  layer, e.g., device driver.  Currently, mbuf_tags(9) is used to tag mbufs.
  The time stamps must be uptime in 'struct bintime' format as binuptime(9)
  and getbinuptime(9) do.
  
  Reviewed by:    net@
  
  Revision  Changes    Path
  1.53      +91 -8     src/share/man/man4/bpf.4
  1.184     +1 -1      src/sys/kern/kern_tc.c
  1.225     +205 -58   src/sys/net/bpf.c
  1.55      +75 -37    src/sys/net/bpf.h
  1.43      +1 -0      src/sys/net/bpfdesc.h
  1.81      +1 -0      src/sys/sys/time.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006151938.o5FJcUPB062710>