Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prometheus/procfs Loading
base: v0.11.1
Choose a base ref
...
head repository: prometheus/procfs Loading
compare: v0.12.0
Choose a head ref
  • 20 commits
  • 23 files changed
  • 14 contributors

Commits on Aug 8, 2023

  1. Bump golang.org/x/sys from 0.9.0 to 0.10.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0.
    - [Commits](golang/sys@v0.9.0...v0.10.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored and discordianfish committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    c5d92ab View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Fix annotation errors

    Signed-off-by: weidong <[email protected]>
    weidongkl authored and discordianfish committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    e7af452 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Update common Prometheus files

    Signed-off-by: prombot <[email protected]>
    prombot authored and discordianfish committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    75c02c7 View commit details
    Browse the repository at this point in the history
  2. Bump golang.org/x/sys from 0.10.0 to 0.11.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
    - [Commits](golang/sys@v0.10.0...v0.11.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored and discordianfish committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    e3cbe53 View commit details
    Browse the repository at this point in the history
  3. dongjiang, fix nfsd v4 ops index

    Signed-off-by: dongjiang1989 <[email protected]>
    dongjiang1989 authored and discordianfish committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    8f5b8ca View commit details
    Browse the repository at this point in the history
  4. dongjiang, support v4 proc4ops 38 operations

    Signed-off-by: dongjiang1989 <[email protected]>
    dongjiang1989 authored and discordianfish committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    301089d View commit details
    Browse the repository at this point in the history
  5. fix gofmt checking fail

    Signed-off-by: dongjiang1989 <[email protected]>
    dongjiang1989 authored and discordianfish committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    c05b611 View commit details
    Browse the repository at this point in the history
  6. fix code comment error (#561) (#562)

    Fixes: #562
    
    Signed-off-by: zhaoxu <[email protected]>
    Co-authored-by: zhaoxu <[email protected]>
    zhaoxuat and zhaoxu committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    b6ad5a7 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Update common Prometheus files

    Signed-off-by: prombot <[email protected]>
    prombot authored and discordianfish committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    f22604f View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Fixup nfs naming (#573)

    Fix golangci-lint revive naming issues.
    
    Signed-off-by: SuperQ <[email protected]>
    SuperQ committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    e8dd544 View commit details
    Browse the repository at this point in the history
  2. NFSd: handle new wdeleg_getattr attribute in /proc/net/rpc/nfsd (#574)

    This attribute was introduced it v6.6-rc1.
    
    Signed-off-by: Tobias Klausmann <[email protected]>
    klausman committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    340d4b8 View commit details
    Browse the repository at this point in the history
  3. Improve sysfs vulnerability parsing (#568)

    The existing sysfs vulnerability parsing routines expected the data provided by the kernel to start with either "Not Affected"/"Vulnerable"/"Mitigation"; however, there are a handful of vulnerabilities that can provide data not matching this expectation:
    
    - https://elixir.bootlin.com/linux/v6.1.53/source/arch/x86/kernel/cpu/bugs.c#L2519
    - https://elixir.bootlin.com/linux/v6.1.53/source/arch/x86/kernel/cpu/bugs.c#L546
    - https://elixir.bootlin.com/linux/v6.1.53/source/arch/x86/kernel/cpu/bugs.c#L2578
    
    Modify the vulnerability parsing to make use of a 4th state ("Unknown"), which is used when the vulnerability information can't be parsed to any of the other vulnerability states, and output the information provided by the kernel, rather than erroring out.
    
    Vulnerability parsing tests have been updated to include the aforementioned vulnerability data.
    
    Signed-off-by: João Lima <[email protected]>
    Co-authored-by: Ben Kochie <[email protected]>
    jopelima and SuperQ committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    5056707 View commit details
    Browse the repository at this point in the history
  4. proc_maps: Parse address and device without allocating (#572)

    In our project we need to parse proc maps pretty frequently and we've
    noticed that there are lots of small allocations coming from parsing the
    device and addresses from procfs' maps file.
    
    The rough split of memory allocated is:
    - bufio.(*Scanner).Text: 25%
    - strings.Split: 50%
    - string.Fields: 25%
    
    The two callers of strings.Split are the two parsing functions that we
    are optimising here. I've added some benchmarks to show the
    improvements.
    
    Before
    ======
    
    ```
    $ go test -benchmem -run=^$ -bench ^BenchmarkParse.*$ github.com/prometheus/procfs
    goos: linux
    goarch: amd64
    pkg: github.com/prometheus/procfs
    cpu: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    BenchmarkParseAddress-12        12218004               123.0 ns/op            32 B/op          1 allocs/op
    BenchmarkParseDevice-12         15074881                85.11 ns/op           32 B/op          1 allocs/op
    PASS
    ok      github.com/prometheus/procfs    2.978s
    ```
    
    After
    =====
    
    ```
    $ go test -benchmem -run=^$ -bench ^BenchmarkParse.*$ github.com/prometheus/procfs
    goos: linux
    goarch: amd64
    pkg: github.com/prometheus/procfs
    cpu: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    BenchmarkParseAddress-12        28619314                50.45 ns/op            0 B/op          0 allocs/op
    BenchmarkParseDevice-12         49721935                29.66 ns/op            0 B/op          0 allocs/op
    PASS
    ok      github.com/prometheus/procfs    2.991s
    ```
    
    Signed-off-by: Francisco Javier Honduvilla Coto <[email protected]>
    Co-authored-by: Ben Kochie <[email protected]>
    javierhonduco and SuperQ committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    a5ae62f View commit details
    Browse the repository at this point in the history
  5. Fix build tags for isRealProc function (#560)

    Only aix, darwin, dragonfly freebsd and linux GOOS have a Type member in
    their syscall.Statfs_t struct. However, since the isRealProc compares
    that Type to a magic number (PROC_SUPER_MAGIC, 0x9fa0) which is only
    relevant to Linux (and possibly FreeBSD with Linux compatibility),
    adjust build tags accordingly.
    
    This drops the previous nostatfs build tag workaround, since the
    "tamago" GOOS for which it was originally added won't match the updated
    build tags.
    
    Fixes: #554.
    
    Signed-off-by: Daniel Swarbrick <[email protected]>
    dswarbrick committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    607adcf View commit details
    Browse the repository at this point in the history
  6. dongjiang, add nfs over RDMA proc parse (#558)

    Signed-off-by: dongjiang1989 <[email protected]>
    Co-authored-by: Ben Kochie <[email protected]>
    dongjiang1989 and SuperQ committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    8676d3d View commit details
    Browse the repository at this point in the history
  7. Add NSpid to proc status (#557)

    * Add NSpid to proc status
    
    Signed-off-by: Nir Levy <[email protected]>
    
    * Support NSpid with 2 pids
    
    Signed-off-by: Nir Levy <[email protected]>
    
    * Support list of nspids
    
    Signed-off-by: Nir Levy <[email protected]>
    
    ---------
    
    Signed-off-by: Nir Levy <[email protected]>
    NirLevy98 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    9d715e8 View commit details
    Browse the repository at this point in the history
  8. Add inode number to fdinfo (#552)

    Signed-off-by: Cyrill Troxler <[email protected]>
    ctrox committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    647e50e View commit details
    Browse the repository at this point in the history
  9. infiniband: do not fail if board_id is not present (#556)

    Whilst a large majority do, not _all_ InfiniBand drivers expose a
    board_id in sysfs.
    
    Signed-off-by: Daniel Swarbrick <[email protected]>
    dswarbrick committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    b2168a3 View commit details
    Browse the repository at this point in the history
  10. Add hw_counters for infiniband device. (#549)

    Signed-off-by: aztecher <[email protected]>
    aztecher committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ce949a5 View commit details
    Browse the repository at this point in the history
  11. Update for Go 1.21 (#575)

    Enable CI testing of Go 1.21.
    * Bump Go modules.
    
    Signed-off-by: SuperQ <[email protected]>
    SuperQ committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ff0ad85 View commit details
    Browse the repository at this point in the history
Loading