Skip to content

Instantly share code, notes, and snippets.

View avikivity's full-sized avatar
💭
Now you can set a status message about what you're currently doing on GitHub. Th

Avi Kivity avikivity

💭
Now you can set a status message about what you're currently doing on GitHub. Th
View GitHub Profile
; *** IR Dump Before PGOInstrumentationUse on [module] ***
; ModuleID = 'rpc-195796.cpp'
source_filename = "rpc-195796.cpp"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-redhat-linux-gnu"
%"class.seastar::future" = type { %"class.seastar::internal::future_base", %"struct.seastar::future_state" }
%"class.seastar::internal::future_base" = type { ptr }
%"struct.seastar::future_state" = type <{ %"struct.seastar::future_state_base", %"struct.seastar::internal::uninitialized_wrapper", [3 x i8] }>
%"struct.seastar::future_state_base" = type { %"union.seastar::future_state_base::any" }
#7 0x00000000117bea43 in (anonymous namespace)::PGOUseFunc::setBranchWeights (this=0x7ffff5ded4f0) at /home/avi/llvm-project/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:1587
1587 EdgeCounts[SuccNum] = EdgeCount;
(gdb) p BB.getParent()->dump()
; Function Attrs: mustprogress nounwind presplitcoroutine uwtable
define linkonce_odr hidden void @_ZN7seastar12input_streamIcE17read_exactly_partEm(ptr dead_on_unwind writable sret(%"class.seastar::future.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(25) %1, i64 noundef %2) #8 comdat align 2 personality ptr @__gxx_personality_v0 !dbg !491 !prof !505 !type !450 {
%4 = alloca %"class.seastar::internal::coroutine_traits_base<seastar::temporary_buffer<char>>::promise_type", align 8
%5 = alloca %"class.seastar::temporary_buffer", align 8
%6 = alloca %"class.seastar::temporary_buffer", align 8
%7 = alloca %"struct.seastar::internal::awaiter", align 8
%8 = alloca %"class.seastar::future.0", align 8
title Lazily learning routing information
note over Driver: Driver does not know where token T is routed
Driver->Node1:request for token T
activate Node1
Node1->Node2:read from replica
deactivate Node1
activate Node2
Node1<-Node2:data
deactivate Node2
mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
 On effectivenessand features
#!/bin/bash -ex
using_container=0
using_gdb=0
while [[ "$1" = -* ]]; do
case "$1" in
--container)
using_container=1; shift
;;

Protocol extensions to the Cassandra Native Protocol

This document specifies extensions to the protocol defined by Cassandra's native_protocol_v4.spec and native_protocol_v5.spec. The extensions are designed so that a driver supporting them can continue to interoperate with Cassandra and other compatible servers with no configuration needed; the driver can discover the extensions and enable them conditionally.

@avikivity
avikivity / noncopyable_function.hh
Created October 3, 2017 14:33
noncopyable_function.hh
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
[ 78.392972] CPU: 6 PID: 7456 Comm: mount Tainted: G E 4.9.17-8.31.amzn1.x86_64 #1
[ 78.398320] Hardware name: Xen HVM domU, BIOS 4.2.amazon 12/12/2016
[ 78.402453] ffffc9003f07f828 ffffffff812fa21f 0000000000000000 0000000000000000
[ 78.409361] ffffc9003f07f868 ffffffff810717d1 000002093f07f888 ffffc9003f07f958
[ 78.416392] 0000000000000008 ffff883c4515c180 0000000000000000 0000000000000001
[ 78.423807] Call Trace:
[ 78.426073] [<ffffffff812fa21f>] dump_stack+0x63/0x84
[ 78.429674] [<ffffffff810717d1>] __warn+0xd1/0xf0
[ 78.433160] [<ffffffff810718bd>] warn_slowpath_null+0x1d/0x20
[ 78.437736] [<ffffffffa01ff945>] _xfs_buf_find+0x2d5/0x340 [xfs]