Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix big-endian build and add CI tests for it. #103

Merged
merged 3 commits into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
language: rust
before_install:
- rustup target add powerpc64-unknown-linux-gnu
rust:
- stable
- beta
- nightly
fast_finish: true
env:
- CARGO_INCREMENTAL=0
install: skip
script:
- cargo check --verbose --target powerpc64-unknown-linux-gnu --lib --bins --tests || exit 1
- cargo build --verbose --all || exit 1
- cargo test --verbose --all
2 changes: 1 addition & 1 deletion analyzeme/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "analyzeme"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crox"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion flamegraph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flamegraph"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion measureme/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "measureme"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
description = "Support crate for rustc's self-profiling feature"
Expand Down
7 changes: 7 additions & 0 deletions measureme/src/event_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ impl EventId {
pub fn from_virtual(virtual_id: StringId) -> EventId {
EventId(virtual_id)
}

/// Create an EventId from a raw u32 value. Only used internally for
/// deserialization.
#[inline]
pub fn from_u32(raw_id: u32) -> EventId {
EventId(StringId::new(raw_id))
}
}

pub struct EventIdBuilder<'p, S: SerializationSink> {
Expand Down
4 changes: 2 additions & 2 deletions measureme/src/raw_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ impl RawEvent {
{
use byteorder::{ByteOrder, LittleEndian};
RawEvent {
event_kind: StringId::reserved(LittleEndian::read_u32(&bytes[0..])),
event_id: StringId::reserved(LittleEndian::read_u32(&bytes[4..])),
event_kind: StringId::new(LittleEndian::read_u32(&bytes[0..])),
event_id: EventId::from_u32(LittleEndian::read_u32(&bytes[4..])),
thread_id: LittleEndian::read_u32(&bytes[8..]),
start_time_lower: LittleEndian::read_u32(&bytes[12..]),
end_time_lower: LittleEndian::read_u32(&bytes[16..]),
Expand Down
2 changes: 1 addition & 1 deletion mmview/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mmview"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion stack_collapse/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stack_collapse"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion summarize/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "summarize"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <[email protected]>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down